pub enum FontFamily {
Serif,
SansSerif,
Cursive,
Fantasy,
Monospace,
Named(String),
}
Expand description
A type of font family.
Variants§
Serif
A serif font.
SansSerif
A sans-serif font.
Cursive
A cursive font.
Fantasy
A fantasy font.
Monospace
A monospace font.
Named(String)
A custom named font.
Trait Implementations§
source§impl Clone for FontFamily
impl Clone for FontFamily
source§fn clone(&self) -> FontFamily
fn clone(&self) -> FontFamily
Returns a copy of the value. Read more
1.6.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 FontFamily
impl Debug for FontFamily
source§impl Display for FontFamily
impl Display for FontFamily
source§impl Hash for FontFamily
impl Hash for FontFamily
source§impl PartialEq for FontFamily
impl PartialEq for FontFamily
impl Eq for FontFamily
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)