pub trait TypeWrite<T> {
    // Required method
    fn write(&mut self, target: T) -> Result<()>;
}
Expand description

A generic write method for a specific type.

Required Methods§

source

fn write(&mut self, target: T) -> Result<()>

Implementors§

source§

impl<T: Display> TypeWrite<T> for Terminal

If they write to the Terminal, then write to Stdout.