pub trait Encode {
// Required method
fn into_cbor_value(self) -> Value;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
Trait for types that can be encoded into CBOR.
Required Methods§
Sourcefn into_cbor_value(self) -> Value
fn into_cbor_value(self) -> Value
Encode the type into a CBOR Value.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".