FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    UnicodeData

    struct · ferroui-base · v0.5.0

    struct UnicodeData
    

    Helper for looking up unicode character class information.

    This file contains only the packing-layout constants; the trie-backed lookup helpers live in unicode_data_lookups.rs. The split mirrors the upstream one, where the generator of the tables consumes the constants without needing the generated tries (which it produces).

    View source

    Members

    get_general_category

    fn get_general_category(codepoint: u32) -> GeneralCategory
    

    Gets the GeneralCategory for a Unicode codepoint.

    Source

    get_script

    fn get_script(codepoint: u32) -> Script
    

    Gets the Script for a Unicode codepoint.

    Source

    get_bi_di_class

    fn get_bi_di_class(codepoint: u32) -> BidiClass
    

    Gets the BidiClass for a Unicode codepoint.

    Source

    get_bi_di_paired_bracket_type

    fn get_bi_di_paired_bracket_type(codepoint: u32) -> BidiPairedBracketType
    

    Gets the BidiPairedBracketType for a Unicode codepoint.

    Source

    get_bi_di_paired_bracket

    fn get_bi_di_paired_bracket(codepoint: u32) -> Codepoint
    

    Gets the paired bracket for a Unicode codepoint.

    Source

    get_line_break_class

    fn get_line_break_class(codepoint: u32) -> LineBreakClass
    

    Gets the line break class for a Unicode codepoint.

    Source

    get_word_break_class

    fn get_word_break_class(codepoint: u32) -> WordBreakClass
    

    Gets the word break class for a Unicode codepoint.

    Source

    get_grapheme_cluster_break

    fn get_grapheme_cluster_break(codepoint: u32) -> GraphemeBreakClass
    

    Gets the grapheme break type for the Unicode codepoint.

    Source

    get_sentence_break_class

    fn get_sentence_break_class(codepoint: u32) -> SentenceBreakClass
    

    Gets the sentence break class for the Unicode codepoint (UAX #29).

    Source

    get_is_emoji

    fn get_is_emoji(codepoint: u32) -> bool
    

    Gets whether the codepoint has the Unicode Emoji property.

    Source

    get_has_emoji_presentation

    fn get_has_emoji_presentation(codepoint: u32) -> bool
    

    Gets whether the codepoint has the Unicode Emoji_Presentation property, i.e. whether it defaults to an emoji presentation when no variation selector is present.

    Source

    get_is_default_ignorable

    fn get_is_default_ignorable(codepoint: u32) -> bool
    

    Gets whether the codepoint has the Unicode Default_Ignorable_Code_Point property.

    Source

    get_east_asian_width_class

    fn get_east_asian_width_class(codepoint: u32) -> EastAsianWidthClass
    

    Gets the EastAsianWidth class for the Unicode codepoint.

    Source

    has_script_extension

    fn has_script_extension(codepoint: u32, script: Script) -> bool
    

    Determines whether the given codepoint's Script_Extensions property (UAX #24) contains the supplied script. When the codepoint has no explicit Script_Extensions entry the extensions set is taken to be the singleton of the codepoint's primary Script property.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither

    Availability

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