Enum fontdb::Family [−][src]
pub enum Family<'a> { Name(&'a str), Serif, SansSerif, Cursive, Fantasy, Monospace, }
Expand description
A font family.
Variants
Name(&'a str)
The name of a font family of choice.
Serif fonts represent the formal text style for a script.
Glyphs in sans-serif fonts, as the term is used in CSS, are generally low contrast and have stroke endings that are plain — without any flaring, cross stroke, or other ornamentation.
Glyphs in cursive fonts generally use a more informal script style, and the result looks more like handwritten pen or brush writing than printed letterwork.
Fantasy fonts are primarily decorative or expressive fonts that contain decorative or expressive representations of characters.
The sole criterion of a monospace font is that all glyphs have the same fixed width.
Trait Implementations
impl<'a> Copy for Family<'a>
[src]
impl<'a> Eq for Family<'a>
[src]
impl<'a> StructuralEq for Family<'a>
[src]
impl<'a> StructuralPartialEq for Family<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Family<'a>
impl<'a> Send for Family<'a>
impl<'a> Sync for Family<'a>
impl<'a> Unpin for Family<'a>
impl<'a> UnwindSafe for Family<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more