FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    UnicodeRange

    struct · ferroui-base · v0.5.0

    struct UnicodeRange
    

    The UnicodeRange class is used to specify which specific characters should be considered in a font fallback.

    View source

    Members

    new

    fn new(start: i32, end: i32) -> Self
    

    Creates a range with a single segment.

    Source

    from_segment

    fn from_segment(single: UnicodeRangeSegment) -> Self
    

    Creates a range from one segment.

    Source

    from_segments

    fn from_segments(segments: Vec<UnicodeRangeSegment>) -> Self
    

    Creates a range from several segments.

    Panics when segments is empty.

    Source

    default_range

    fn default_range() -> Self
    

    The default range, 0-10FFFD.

    Source

    is_in_range

    fn is_in_range(self: &Self, value: i32) -> bool
    

    Determines if given value is in range.

    Source

    parse

    fn parse(s: &str) -> Result<UnicodeRange, FormatError>
    

    Parses a UnicodeRange.

    Source

    Trait implementations

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

    Availability

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