pub trait NvEncode {
// Required method
fn encode<W: ByteSink + ?Sized>(&self, w: &mut W) -> Result<(), CodecError>;
// Provided method
fn encode_to_vec(&self) -> Result<Vec<u8>, CodecError> { ... }
}Expand description
Trait for Tier-2 little-endian binary serialization into any ByteSink.
Required Methods§
Provided Methods§
fn encode_to_vec(&self) -> Result<Vec<u8>, CodecError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".