#[non_exhaustive]pub enum FontFamily {
}Expand description
A value of font-family.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cursive
cursive.
Emoji
emoji.
Fangsong
fangsong.
Fantasy
fantasy.
Math
math.
Monospace
monospace.
SansSerif
sans-serif.
Serif
serif.
SystemUi
system-ui.
UiMonospace
ui-monospace.
UiRounded
ui-rounded.
UiSansSerif
ui-sans-serif.
UiSerif
ui-serif.
Quoted(Quoted)
A quoted string.
Raw(Raw)
Any other value, passed through unchecked.
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 Display for FontFamily
impl Display for FontFamily
Source§impl From<Quoted> for FontFamily
impl From<Quoted> for FontFamily
Source§impl From<Raw> for FontFamily
impl From<Raw> for FontFamily
Source§impl PartialEq for FontFamily
impl PartialEq 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