#[repr(C, u8)]pub enum StyleFontFamily {
System(AzString),
File(AzString),
Ref(FontRef),
}Expand description
Represents a font-family attribute
Variants§
System(AzString)
Native font, such as “Webly Sleeky UI”, “monospace”, etc.
File(AzString)
Font loaded from a file
Ref(FontRef)
Reference-counted, already-decoded font, so that specific DOM nodes are required to use this font
Trait Implementations§
Source§impl Clone for StyleFontFamily
impl Clone for StyleFontFamily
Source§fn clone(&self) -> StyleFontFamily
fn clone(&self) -> StyleFontFamily
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StyleFontFamily
impl Debug for StyleFontFamily
Source§impl FromIterator<StyleFontFamily> for StyleFontFamilyVec
impl FromIterator<StyleFontFamily> for StyleFontFamilyVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = StyleFontFamily>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = StyleFontFamily>,
Creates a value from an iterator. Read more
Source§impl Hash for StyleFontFamily
impl Hash for StyleFontFamily
Source§impl Ord for StyleFontFamily
impl Ord for StyleFontFamily
Source§fn cmp(&self, other: &StyleFontFamily) -> Ordering
fn cmp(&self, other: &StyleFontFamily) -> Ordering
1.21.0 · 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
Source§impl PartialEq for StyleFontFamily
impl PartialEq for StyleFontFamily
Source§impl PartialOrd for StyleFontFamily
impl PartialOrd for StyleFontFamily
impl Eq for StyleFontFamily
impl StructuralPartialEq for StyleFontFamily
Auto Trait Implementations§
impl Freeze for StyleFontFamily
impl RefUnwindSafe for StyleFontFamily
impl Send for StyleFontFamily
impl Sync for StyleFontFamily
impl Unpin for StyleFontFamily
impl UnwindSafe for StyleFontFamily
Blanket Implementations§
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