Function asn1::write_single

source ·
pub fn write_single<T: Asn1Writable>(v: &T) -> WriteResult<Vec<u8>>
Expand description

Writes a single top-level ASN.1 element, returning the generated DER bytes. Most often this will be used where T is a type with #[derive(asn1::Asn1Write)].