[−][src]Struct mrml::util::header::Header
Fields
breakpoint: Size
default_attributes: DefaultAttributes
font_families: HashSet<String>
font_registry: FontRegistry
keep_comments: bool
media_queries: HashMap<String, Size>
preview: Option<String>
title: Option<String>
styles: HashSet<String>
Implementations
impl Header
[src]
pub fn set_title(&mut self, title: String)
[src]
pub fn set_breakpoint(&mut self, value: Size)
[src]
pub fn set_default_attributes(&mut self, value: DefaultAttributes)
[src]
pub fn set_preview(&mut self, preview: String)
[src]
pub fn has_media_queries(&self) -> bool
[src]
pub fn add_media_query<K: ToString>(&mut self, classname: K, size: Size)
[src]
pub fn maybe_add_style<K: ToString>(&mut self, style: Option<K>)
[src]
pub fn add_style<K: ToString>(&mut self, style: K)
[src]
pub fn maybe_add_font_families(&mut self, font_family_list: Option<&String>)
[src]
pub fn add_font_families(&mut self, font_family_list: &str)
[src]
pub fn register_font(&mut self, name: &str, href: &str)
[src]
pub fn get_styles(&self) -> Vec<String>
[src]
pub fn get_font_families(&self) -> Vec<String>
[src]
pub fn get_used_font_families(&self) -> Vec<&String>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,