pub trait ReadCbor {
// Required methods
fn fmt(f: &mut impl Write) -> Result;
fn read_cbor_impl(cbor: &Cbor) -> Result<Self>
where Self: Sized;
// Provided methods
fn name() -> String { ... }
fn read_cbor(cbor: &Cbor) -> Result<Self>
where Self: Sized { ... }
}Required Methods§
fn fmt(f: &mut impl Write) -> Result
fn read_cbor_impl(cbor: &Cbor) -> Result<Self>where
Self: Sized,
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.