Skip to main content

PrintSink

Trait PrintSink 

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

Where the lines that task programs print go.

Required Methods§

Source

fn print_line(&self, line: &str)

Show one line of print output, already prefixed with the task’s TaskInfo::display_name: its name, else its heading, else its location.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§