Trait ruwren::Printer

source ·
pub trait Printer {
    // Required method
    fn print(&mut self, s: String);
}
Expand description

Sends strings for printing to an output

Required Methods§

source

fn print(&mut self, s: String)

Called whenever a string is to be sent to output

Implementors§

source§

impl<T> Printer for T
where T: FnMut(String),