pub struct FontCollectionKey {
pub style: FontStyle,
pub weight: FontWeight,
pub stretch: FontStretch,
}Expand description
Represents a unique key for identifying a font within a font collection based on style, weight and stretch.
Keys order by style, then weight, then stretch (numeric values).
Fields§
§style: FontStyle§weight: FontWeight§stretch: FontStretchImplementations§
Source§impl FontCollectionKey
impl FontCollectionKey
pub const fn new( style: FontStyle, weight: FontWeight, stretch: FontStretch, ) -> Self
Trait Implementations§
Source§impl Clone for FontCollectionKey
impl Clone for FontCollectionKey
impl Copy for FontCollectionKey
Source§impl Debug for FontCollectionKey
impl Debug for FontCollectionKey
impl Eq for FontCollectionKey
Source§impl From<&GlyphTypeface> for FontCollectionKey
impl From<&GlyphTypeface> for FontCollectionKey
Source§fn from(glyph_typeface: &GlyphTypeface) -> Self
fn from(glyph_typeface: &GlyphTypeface) -> Self
Converts to this type from the input type.
Source§impl From<&Typeface> for FontCollectionKey
impl From<&Typeface> for FontCollectionKey
Source§impl From<&dyn IPlatformTypeface> for FontCollectionKey
impl From<&dyn IPlatformTypeface> for FontCollectionKey
Source§fn from(platform_typeface: &dyn IPlatformTypeface) -> Self
fn from(platform_typeface: &dyn IPlatformTypeface) -> Self
Converts to this type from the input type.
Source§impl Hash for FontCollectionKey
impl Hash for FontCollectionKey
Source§impl Ord for FontCollectionKey
impl Ord for FontCollectionKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FontCollectionKey
impl PartialEq for FontCollectionKey
Source§impl PartialOrd for FontCollectionKey
impl PartialOrd for FontCollectionKey
impl StructuralPartialEq for FontCollectionKey
Auto Trait Implementations§
impl Freeze for FontCollectionKey
impl RefUnwindSafe for FontCollectionKey
impl Send for FontCollectionKey
impl Sync for FontCollectionKey
impl Unpin for FontCollectionKey
impl UnsafeUnpin for FontCollectionKey
impl UnwindSafe for FontCollectionKey
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more