pub trait DerDecodable<'a>: Sized {
    fn load(object: DerObject<'a>) -> Result<Self, Asn1DerError>;

    fn decode(raw: &'a [u8]) -> Result<Self, Asn1DerError> { ... }
    fn decode_at(
        raw: &'a [u8],
        header_start: usize
    ) -> Result<Self, Asn1DerError> { ... } fn decode_from_source<A: Source, B: Sink + Into<&'a [u8]>>(
        source: &mut A,
        sink: B
    ) -> Result<Self, Asn1DerError> { ... } }
Expand description

A trait for DER decodable types

Required Methods§

Loads object as Self

Provided Methods§

Decodes an object as Self

Decodes an object as Self

Reads an object from source by parsing the length field and copying the necessary bytes into sink and decoding it from sink

Implementations on Foreign Types§

Implementors§