pub enum FontFamily {
Default,
SansSerif,
Serif,
Monospace,
Cursive,
Fantasy,
Named(String),
FileBacked(FileBackedFontFamily),
LoadedTypeface(LoadedTypefacePath),
}Variants§
Default
SansSerif
Serif
Monospace
Cursive
Fantasy
Named(String)
FileBacked(FileBackedFontFamily)
LoadedTypeface(LoadedTypefacePath)
Implementations§
Source§impl FontFamily
impl FontFamily
Trait Implementations§
Source§impl Clone for FontFamily
impl Clone for FontFamily
Source§fn clone(&self) -> FontFamily
fn clone(&self) -> FontFamily
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FontFamily
impl Debug for FontFamily
Source§impl Default for FontFamily
impl Default for FontFamily
Source§fn default() -> FontFamily
fn default() -> FontFamily
Returns the “default value” for a type. Read more
impl Eq for FontFamily
Source§impl From<&str> for FontFamily
impl From<&str> for FontFamily
Source§impl From<String> for FontFamily
impl From<String> for FontFamily
Source§impl Hash for FontFamily
impl Hash for FontFamily
Source§impl PartialEq for FontFamily
impl PartialEq for FontFamily
Source§fn eq(&self, other: &FontFamily) -> bool
fn eq(&self, other: &FontFamily) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FontFamily
Auto Trait Implementations§
impl Freeze for FontFamily
impl RefUnwindSafe for FontFamily
impl Send for FontFamily
impl Sync for FontFamily
impl Unpin for FontFamily
impl UnsafeUnpin for FontFamily
impl UnwindSafe for FontFamily
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