Trait der::Decode

source ·
pub trait Decode<'a>: Sized {
    fn decode<R: Reader<'a>>(decoder: &mut R) -> Result<Self>;

    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§

Attempt to decode this message using the provided decoder.

Provided Methods§

Parse Self from the provided DER-encoded byte slice.

Implementations on Foreign Types§

Implementors§