pub trait Flush {
// Required method
fn flush_one(&mut self, display: String);
}Expand description
Simple trait that allows an underlying implementation of Flush to perform some type of IO operation, i.e. writing to file, writing to stdout, etc
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".