Trait nuts_bytes::ToBytes
source · pub trait ToBytes {
// Required method
fn to_bytes<PB: PutBytes>(&self, target: &mut PB) -> Result<usize, Error>;
}
Expand description
Trait that supports writing datatypes into a binary data stream.
Datatypes that implements this trait can be serialized into a binary data stream.
Required Methods§
Object Safety§
This trait is not object safe.