pub trait DecodeDer<'a>: Sized {
// Required method
fn decode<R>(decoder: &mut R) -> Result<Self, Error>
where R: Reader<'a>;
// Provided method
fn from_der(bytes: &'a [u8]) -> Result<Self, Error> { ... }
}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.
Implementations on Foreign Types§
Source§impl<'__der_lifetime> Decode<'__der_lifetime> for TrustAnchorChoice
impl<'__der_lifetime> Decode<'__der_lifetime> for TrustAnchorChoice
Source§impl<'__der_lifetime> Decode<'__der_lifetime> for DisplayText
impl<'__der_lifetime> Decode<'__der_lifetime> for DisplayText
Source§impl<'__der_lifetime> Decode<'__der_lifetime> for DirectoryString
impl<'__der_lifetime> Decode<'__der_lifetime> for DirectoryString
Source§impl<'a, T> Decode<'a> for PhantomData<T>where
T: ?Sized,
Dummy implementation for PhantomData which allows deriving
implementations on structs with phantom fields.
impl<'a, T> Decode<'a> for PhantomData<T>where
T: ?Sized,
Dummy implementation for PhantomData which allows deriving
implementations on structs with phantom fields.