Trait nate::RenderInto

source ·
pub trait RenderInto {
    fn render_fmt(&self, output: impl Write) -> Result { ... }
    fn render_io(&self, output: impl Write) -> Result { ... }
    fn render_string(&self) -> Result<String, Error> { ... }
    fn render_bytes(&self) -> Result<Vec<u8>, Error> { ... }
}
Expand description

Optimized trait methods to render a NaTE template

Every NaTE template implements this trait.

Provided Methods§

Render the output into an fmt::Write object

Available on crate features alloc or std only.

Render the output into an io::Write object

Available on crate features alloc or std only.

Render the output into a new string

Available on crate features alloc or std only.

Render the output into a new vector

Implementors§