Skip to main content

OutputSink

Trait OutputSink 

Source
pub trait OutputSink {
    // Required method
    fn write_line(&mut self, line: &str);
}
Expand description

Where puts/print bytes go: stdout natively, a buffer in the simulator and in tests (design §8.1).

Required Methods§

Source

fn write_line(&mut self, line: &str)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§