pub trait Outputs {
// Required method
fn new() -> Self;
// Provided methods
fn message<D: Display>(&self, text: D) { ... }
fn file_open<D: Display>(&self, text: D) { ... }
fn file_close<D: Display>(&self, _text: D) { ... }
fn write_18<D: Display>(&self, text: D) { ... }
fn write_17<D: Display>(&self, text: D) { ... }
fn write_16<D: Display>(&self, text: D) { ... }
fn write_neg1<D: Display>(&self, text: D) { ... }
fn write_other<D: Display>(&self, text: D) { ... }
}Required Methods§
Provided Methods§
fn message<D: Display>(&self, text: D)
fn file_open<D: Display>(&self, text: D)
fn file_close<D: Display>(&self, _text: D)
fn write_18<D: Display>(&self, text: D)
fn write_17<D: Display>(&self, text: D)
fn write_16<D: Display>(&self, text: D)
fn write_neg1<D: Display>(&self, text: D)
fn write_other<D: Display>(&self, text: D)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.