pub trait HeaderWriter: Sized {
// Required method
fn write_header(&self, writer: &mut impl Writer);
// Provided method
fn to_header(&self) -> String { ... }
}
Required Methods§
fn write_header(&self, writer: &mut impl Writer)
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.