FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FamilyNameCollection

    struct · ferroui-base · v0.5.0

    struct FamilyNameCollection
    

    A list of font family names: the primary name followed by its fallbacks.

    View source

    Members

    new

    fn new(family_names: &str) -> Self
    

    Creates a collection from a comma separated list of family names.

    Source

    primary_family_name

    fn primary_family_name(self: &Self) -> &str
    

    Gets the primary family name.

    Source

    has_fallbacks

    fn has_fallbacks(self: &Self) -> bool
    

    Gets a value indicating whether fallbacks are defined.

    Source

    count

    fn count(self: &Self) -> usize
    

    The number of names.

    Source

    get

    fn get(self: &Self, index: usize) -> &str
    

    The name at index.

    Source

    iter

    fn iter(self: &Self) -> impl Iterator<Item = &str>
    

    Iterates over the names.

    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
    • ToString
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • Index<usize>
    • Display

    Availability

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