[][src]Struct mrml::util::header::Header

pub struct Header {
    pub breakpoint: Size,
    pub default_attributes: DefaultAttributes,
    pub font_families: HashSet<String>,
    pub font_registry: FontRegistry,
    pub keep_comments: bool,
    pub media_queries: HashMap<String, Size>,
    pub preview: Option<String>,
    pub title: Option<String>,
    pub styles: HashSet<String>,
    pub social_icon_origin: String,
}

Fields

breakpoint: Sizedefault_attributes: DefaultAttributesfont_families: HashSet<String>font_registry: FontRegistrykeep_comments: boolmedia_queries: HashMap<String, Size>preview: Option<String>title: Option<String>styles: HashSet<String>social_icon_origin: 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

impl Clone for Header[src]

impl Debug for Header[src]

impl From<Options> for Header[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,