FamilyNameCollection
struct · ferroui-base · v0.5.0
struct FamilyNameCollection
A list of font family names: the primary name followed by its fallbacks.
Members
new
fn new(family_names: &str) -> Self
Creates a collection from a comma separated list of family names.
primary_family_name
fn primary_family_name(self: &Self) -> &str
Gets the primary family name.
has_fallbacks
fn has_fallbacks(self: &Self) -> bool
Gets a value indicating whether fallbacks are defined.
count
fn count(self: &Self) -> usize
The number of names.
get
fn get(self: &Self, index: usize) -> &str
The name at index.
iter
fn iter(self: &Self) -> impl Iterator<Item = &str>
Iterates over the names.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringErasedDestructorIntoEitherCloneDebugStructuralPartialEqPartialEqEqHashIndex<usize>Display
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.