pub trait CborSerialize {
// Required method
fn serialize<C>(&self, encoder: C) -> Result<(), CborSerializationError>
where C: CborEncoder;
// Provided method
fn is_null(&self) -> bool { ... }
}Expand description
Type that can be CBOR serialized
Required Methods§
Sourcefn serialize<C>(&self, encoder: C) -> Result<(), CborSerializationError>where
C: CborEncoder,
fn serialize<C>(&self, encoder: C) -> Result<(), CborSerializationError>where
C: CborEncoder,
Serialize value to CBOR
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.