Grapheme
struct · ferroui-base · v0.5.0
struct Grapheme
Represents the smallest unit of a writing system of any given language.
Members
new
const fn new(first_codepoint: Codepoint, offset: usize, length: usize) -> Self
first_codepoint
const fn first_codepoint(self: &Self) -> Codepoint
The first Codepoint of the grapheme cluster.
offset
const fn offset(self: &Self) -> usize
Gets the starting code unit offset of this grapheme inside its containing text.
length
const fn length(self: &Self) -> usize
Gets the length of this grapheme, in code units.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEqEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.