Struct tailwind_css::FontSystem 
source · [−]pub struct FontSystem { /* private fields */ }Implementations
sourceimpl FontSystem
 
impl FontSystem
sourceimpl FontSystem
 
impl FontSystem
pub fn get_size(&self, name: &str) -> FontSize
sourcepub fn insert_size(
    &mut self, 
    name: impl Into<String>, 
    size: FontSize
) -> Option<FontSize>
 
pub fn insert_size(
    &mut self, 
    name: impl Into<String>, 
    size: FontSize
) -> Option<FontSize>
Insert a new font size
sourcepub fn get_family(&self, name: &str) -> String
 
pub fn get_family(&self, name: &str) -> String
Get the named font family,
never fail, fallback to the serif, sans-serif, monospace
sourcepub fn insert_family(
    &mut self, 
    name: impl Into<String>, 
    family: &str
) -> Option<Vec<String>>
 
pub fn insert_family(
    &mut self, 
    name: impl Into<String>, 
    family: &str
) -> Option<Vec<String>>
Insert a new font family
pub fn get_tracking(&self, name: &str) -> f32
Trait Implementations
sourceimpl Clone for FontSystem
 
impl Clone for FontSystem
sourcefn clone(&self) -> FontSystem
 
fn clone(&self) -> FontSystem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FontSystem
 
impl Debug for FontSystem
sourceimpl Default for FontSystem
 
impl Default for FontSystem
sourcefn default() -> FontSystem
 
fn default() -> FontSystem
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for FontSystem
impl Send for FontSystem
impl Sync for FontSystem
impl Unpin for FontSystem
impl UnwindSafe for FontSystem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
 
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more