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§
sourcefn render_fmt(&self, output: impl Write) -> Result
fn render_fmt(&self, output: impl Write) -> Result
Render the output into an fmt::Write object
sourcefn render_io(&self, output: impl Write) -> Result
fn render_io(&self, output: impl Write) -> Result
Available on crate features
alloc or std only.Render the output into an io::Write object
sourcefn render_string(&self) -> Result<String, Error>
fn render_string(&self) -> Result<String, Error>
Available on crate features
alloc or std only.Render the output into a new string