Trait genco::WriteTokens
[−]
[src]
pub trait WriteTokens { fn write_tokens<'el, C: Custom>(
&mut self,
tokens: Tokens<'el, C>,
extra: &mut C::Extra
) -> Result; fn write_file<'el, C: Custom>(
&mut self,
tokens: Tokens<'el, C>,
extra: &mut C::Extra
) -> Result; }
Helper trait to write tokens immediately to containers.
Required Methods
fn write_tokens<'el, C: Custom>(
&mut self,
tokens: Tokens<'el, C>,
extra: &mut C::Extra
) -> Result
&mut self,
tokens: Tokens<'el, C>,
extra: &mut C::Extra
) -> Result
Write the given tokens to the container.
fn write_file<'el, C: Custom>(
&mut self,
tokens: Tokens<'el, C>,
extra: &mut C::Extra
) -> Result
&mut self,
tokens: Tokens<'el, C>,
extra: &mut C::Extra
) -> Result
Write the given tokens to the container as a file.
Implementors
impl<W: Write> WriteTokens for W