Trait asn1_der::typed::DerEncodable
source · pub trait DerEncodable: Sized {
// Required method
fn encode<S: Sink>(&self, sink: &mut S) -> Result<(), Asn1DerError>;
// Provided method
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§
Provided Methods§
sourcefn der_object<'a, S: Sink + Into<&'a [u8]>>(
&self,
sink: S
) -> Result<DerObject<'a>, Asn1DerError>
fn der_object<'a, S: Sink + Into<&'a [u8]>>( &self, sink: S ) -> Result<DerObject<'a>, Asn1DerError>
Creates an DER object from an encodable type