[][src]Trait yarte::TemplateTrait

pub trait TemplateTrait: Display {
    fn size_hint() -> usize;

    fn call(&self) -> Result<String> { ... }
}

Template trait, will implement by derive like Display

Required methods

fn size_hint() -> usize

Approximation of output size used in method call. Yarte implements an heuristic algorithm of allocation.

Loading content...

Provided methods

fn call(&self) -> Result<String>

which will write this template

Loading content...

Implementors

Loading content...