Struct minimad::SubTemplateExpander
source · pub struct SubTemplateExpander<'s, 'b> { /* private fields */ }
Expand description
an expander for a sub template. You get it using the sub
method
of the text expander
Implementations§
source§impl<'s, 'b> SubTemplateExpander<'s, 'b>
impl<'s, 'b> SubTemplateExpander<'s, 'b>
sourcepub fn set(
&mut self,
name: &'b str,
value: &'s str
) -> &mut SubTemplateExpander<'s, 'b>
pub fn set( &mut self, name: &'b str, value: &'s str ) -> &mut SubTemplateExpander<'s, 'b>
replace placeholders with name name
with the given value, not interpreted as markdown
sourcepub fn set_md(
&mut self,
name: &'b str,
value: &'s str
) -> &mut SubTemplateExpander<'s, 'b>
pub fn set_md( &mut self, name: &'b str, value: &'s str ) -> &mut SubTemplateExpander<'s, 'b>
replace placeholder with name name
with the given value, interpreted as markdown
Trait Implementations§
Auto Trait Implementations§
impl<'s, 'b> Freeze for SubTemplateExpander<'s, 'b>
impl<'s, 'b> RefUnwindSafe for SubTemplateExpander<'s, 'b>
impl<'s, 'b> Send for SubTemplateExpander<'s, 'b>
impl<'s, 'b> Sync for SubTemplateExpander<'s, 'b>
impl<'s, 'b> Unpin for SubTemplateExpander<'s, 'b>
impl<'s, 'b> UnwindSafe for SubTemplateExpander<'s, 'b>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more