[][src]Trait genco::WriteTokens

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

Write the given tokens to the container.

fn write_file<'el, C: Custom>(
    &mut self,
    tokens: Tokens<'el, C>,
    extra: &mut C::Extra
) -> Result

Write the given tokens to the container as a file.

Loading content...

Implementors

impl<W: Write> WriteTokens for W[src]

Loading content...