#[repr(u8)]pub enum GenericFamily {
Serif = 0,
SansSerif = 1,
Monospace = 2,
Cursive = 3,
Fantasy = 4,
SystemUI = 5,
Math = 6,
Emoji = 7,
FangSong = 8,
}
Expand description
Describes a generic font family.
Variants§
Serif = 0
SansSerif = 1
Monospace = 2
Cursive = 3
Fantasy = 4
SystemUI = 5
Math = 6
Emoji = 7
FangSong = 8
Implementations§
Trait Implementations§
Source§impl Clone for GenericFamily
impl Clone for GenericFamily
Source§fn clone(&self) -> GenericFamily
fn clone(&self) -> GenericFamily
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 GenericFamily
impl Debug for GenericFamily
Source§impl From<GenericFamily> for FamilyKey<'_>
impl From<GenericFamily> for FamilyKey<'_>
Source§fn from(family: GenericFamily) -> Self
fn from(family: GenericFamily) -> Self
Converts to this type from the input type.
Source§impl From<GenericFamily> for FontKey<'_>
impl From<GenericFamily> for FontKey<'_>
Source§fn from(family: GenericFamily) -> Self
fn from(family: GenericFamily) -> Self
Converts to this type from the input type.
Source§impl Hash for GenericFamily
impl Hash for GenericFamily
Source§impl PartialEq for GenericFamily
impl PartialEq for GenericFamily
impl Copy for GenericFamily
impl Eq for GenericFamily
impl StructuralPartialEq for GenericFamily
Auto Trait Implementations§
impl Freeze for GenericFamily
impl RefUnwindSafe for GenericFamily
impl Send for GenericFamily
impl Sync for GenericFamily
impl Unpin for GenericFamily
impl UnwindSafe for GenericFamily
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