pub trait Decode<'a>: Sized {
// Required method
fn decode<R: Reader<'a>>(decoder: &mut R) -> Result<Self>;
// Provided method
fn from_der(bytes: &'a [u8]) -> Result<Self> { ... }
}
Expand description
Decoding trait.
This trait provides the core abstraction upon which all decoding operations are based.
Required Methods§
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.