[−][src]Struct mrml::mjml::body::mj_body::MJBody
Implementations
impl MJBody
[src]
pub fn empty<'a, 'b>(_opts: &Options) -> MJBody
[src]
pub fn parse<'a, 'b>(
node: Node<'a, 'b>,
opts: &Options
) -> Result<MJBody, Error>
[src]
node: Node<'a, 'b>,
opts: &Options
) -> Result<MJBody, Error>
pub fn render_preview(&self, header: &Header) -> String
[src]
Trait Implementations
impl BodyComponent for MJBody
[src]
impl Clone for MJBody
[src]
impl Component for MJBody
[src]
fn context(&self) -> Option<&Context>
[src]
fn update_header(&self, header: &mut Header)
[src]
fn set_context(&mut self, ctx: Context)
[src]
fn render(&self, header: &Header) -> Result<String, Error>
[src]
impl ComponentWithAttributes for MJBody
[src]
fn source_attributes(&self) -> Option<&HashMap<String, String>>
[src]
fn default_attribute(&self, key: &str) -> Option<String>
[src]
fn get_source_attribute(&self, key: &str) -> Option<String>
[src]
fn get_attribute(&self, key: &str) -> Option<String>
[src]
impl ComponentWithSizeAttribute for MJBody
[src]
fn get_size_attribute(&self, name: &str) -> Option<Size>
[src]
impl Debug for MJBody
[src]
Auto Trait Implementations
impl RefUnwindSafe for MJBody
impl Send for MJBody
impl Sync for MJBody
impl Unpin for MJBody
impl UnwindSafe for MJBody
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,