pub trait ToABC {
// Required method
fn write_mut_abc(&self, writer: &mut impl Write) -> Result;
// Provided methods
fn write_abc(&self, writer: impl Write) -> Result { ... }
fn to_abc(&self) -> String { ... }
}Required Methods§
fn write_mut_abc(&self, writer: &mut impl Write) -> Result
Provided Methods§
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.