Function asn1::parse_single

source ·
pub fn parse_single<'a, T: Asn1Readable<'a>>(data: &'a [u8]) -> ParseResult<T>
Expand description

Parses a single top-level ASN.1 element from data (does not allow trailing data). Most often this will be used where T is a type with #[derive(asn1::Asn1Read)].