#[repr(C)]pub enum FontFamily {
System = 0,
Rounded = 1,
Serif = 2,
Monospace = 3,
}Expand description
A finite, cross-platform font family (maps to each platform’s nearest system
font design — no bundled font files). System ≈ the current look.
Variants§
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 moreimpl Copy for FontFamily
Source§impl Debug for FontFamily
impl Debug for FontFamily
Source§impl<'de> Deserialize<'de> for FontFamily
impl<'de> Deserialize<'de> for FontFamily
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FontFamily
Source§impl<'ʄ> Facet<'ʄ> for FontFamily
impl<'ʄ> Facet<'ʄ> 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 ==.Source§impl Serialize for FontFamily
impl Serialize 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 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