FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Grapheme

    struct · ferroui-base · v0.5.0

    struct Grapheme
    

    Represents the smallest unit of a writing system of any given language.

    View source

    Members

    new

    const fn new(first_codepoint: Codepoint, offset: usize, length: usize) -> Self
    

    Source

    first_codepoint

    const fn first_codepoint(self: &Self) -> Codepoint
    

    The first Codepoint of the grapheme cluster.

    Source

    offset

    const fn offset(self: &Self) -> usize
    

    Gets the starting code unit offset of this grapheme inside its containing text.

    Source

    length

    const fn length(self: &Self) -> usize
    

    Gets the length of this grapheme, in code units.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.