pub trait DerEncodable: Sized {
    fn encode<S: Sink>(&self, sink: &mut S) -> Result<(), Asn1DerError>;

    fn der_object<'a, S: Sink + Into<&'a [u8]>>(
        &self,
        sink: S
    ) -> Result<DerObject<'a>, Asn1DerError> { ... } }
Expand description

A trait for DER encodable types

Required Methods§

Encodes self into sink

Provided Methods§

Creates an DER object from an encodable type

Implementations on Foreign Types§

Implementors§