twiggy_traits

Trait Emit

Source
pub trait Emit {
    // Provided method
    fn emit(
        &self,
        items: &Items,
        destination: &mut dyn Write,
        format: OutputFormat,
    ) -> Result<(), Error> { ... }
}
Expand description

Anything that can write itself in the given output format to the given destination.

Provided Methods§

Source

fn emit( &self, items: &Items, destination: &mut dyn Write, format: OutputFormat, ) -> Result<(), Error>

Emit this thing to the given destination in the given output format.

Implementors§