pub struct Templater<T> { /* private fields */ }
Implementations§
Source§impl<T> Templater<T>
impl<T> Templater<T>
pub fn new() -> Self
pub fn insert<S, F>(&mut self, selector: S, accessor: F)
pub fn extend<I, S, U>(&mut self, selectors: I)
pub fn remove<S>(&mut self, selector: S) -> bool
pub fn renderf( &self, obj: &T, formatter: &Formatter, ) -> Result<String, TemplateError>
pub fn render<S>(&self, obj: &T, fmts: S) -> Result<String, TemplateError>
Auto Trait Implementations§
impl<T> Freeze for Templater<T>
impl<T> !RefUnwindSafe for Templater<T>
impl<T> Send for Templater<T>
impl<T> Sync for Templater<T>
impl<T> Unpin for Templater<T>
impl<T> !UnwindSafe for Templater<T>
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