Struct minimad::SubTemplateExpander[][src]

pub struct SubTemplateExpander<'s, 'b> { /* fields omitted */ }

an expander for a sub template. You get it using the sub method of the text expander

Implementations

impl<'s, 'b> SubTemplateExpander<'s, 'b>[src]

pub fn set(
    &mut self,
    name: &'b str,
    value: &'s str
) -> &mut SubTemplateExpander<'s, 'b>
[src]

replace placeholders with name name with the given value, not interpreted as markdown

pub fn set_md(
    &mut self,
    name: &'b str,
    value: &'s str
) -> &mut SubTemplateExpander<'s, 'b>
[src]

replace placeholder with name name with the given value, interpreted as markdown

Trait Implementations

impl<'s, 'b> Debug for SubTemplateExpander<'s, 'b>[src]

Auto Trait Implementations

impl<'s, 'b> RefUnwindSafe for SubTemplateExpander<'s, 'b>[src]

impl<'s, 'b> Send for SubTemplateExpander<'s, 'b>[src]

impl<'s, 'b> Sync for SubTemplateExpander<'s, 'b>[src]

impl<'s, 'b> Unpin for SubTemplateExpander<'s, 'b>[src]

impl<'s, 'b> UnwindSafe for SubTemplateExpander<'s, 'b>[src]

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, 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.