pub trait Serialize {
type Error: From<Error>;
// Required method
fn serialize<W: Write>(self, writer: &mut W) -> Result<(), Self::Error>;
}
Expand description
Serialization to serial i/o. Takes self by value to consume less memory (parity-wasm IR is being partially freed by filling the result buffer).
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.