Skip to main content

PrintSink

Trait PrintSink 

Source
pub trait PrintSink: Send + Sync {
    // Required method
    fn print(&self, text: String);
}
Expand description

Where Print and PrintT output goes.

Required Methods§

Source

fn print(&self, text: String)

One printed line (TLC prints each Print as one println; the text may contain newlines from the pretty-printer).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§