pub trait Save: Sized {
type Error;
// Required method
fn save(&self, output: &mut impl Write) -> Result<(), Self::Error>;
}
Expand description
Interface for saving a value into a Write
output.
Required Associated Types§
Required 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.