pub struct OwningSubTemplateExpander<'s> { /* private fields */ }
Implementations§
Source§impl<'s> OwningSubTemplateExpander<'s>
impl<'s> OwningSubTemplateExpander<'s>
pub fn new() -> Self
Sourcepub fn set<S: Display>(&mut self, name: &'s str, value: S) -> &mut Self
pub fn set<S: Display>(&mut self, name: &'s str, value: S) -> &mut Self
replace placeholders with name name
with the given value, non interpreted
(i.e. stars, backquotes, etc. don’t mess the styling defined by the template)
pub fn set_option<S: Display>( &mut self, name: &'s str, value: Option<S>, ) -> &mut Self
Trait Implementations§
Source§impl<'s> Default for OwningSubTemplateExpander<'s>
impl<'s> Default for OwningSubTemplateExpander<'s>
Source§fn default() -> OwningSubTemplateExpander<'s>
fn default() -> OwningSubTemplateExpander<'s>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'s> Freeze for OwningSubTemplateExpander<'s>
impl<'s> RefUnwindSafe for OwningSubTemplateExpander<'s>
impl<'s> Send for OwningSubTemplateExpander<'s>
impl<'s> Sync for OwningSubTemplateExpander<'s>
impl<'s> Unpin for OwningSubTemplateExpander<'s>
impl<'s> UnwindSafe for OwningSubTemplateExpander<'s>
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