pub trait IoSink: Send {
// Required method
fn print_line(&mut self, s: &str);
}Expand description
Output sink used by io.print. Tests inject a buffer; production prints
to stdout.
Required Methods§
fn print_line(&mut self, s: &str)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".