Struct asn1::Parser [−][src]
pub struct Parser<'a> { /* fields omitted */ }Expand description
Encapsulates an ongoing parse. For almost all use-cases the correct
entry-point is parse or parse_single.
Implementations
Tests whether there is any data remaining in the Parser. Generally
useful when parsing a SEQUENCE OF.
Reads a single ASN.1 element from the parser. Which type you are reading is determined by
the type parameter T.
This is an alias for read_element::<Explicit<T, tag>> for use when
MSRV is < 1.51.
pub fn read_optional_explicit_element<T: Asn1Readable<'a>>(
&mut self,
tag: u8
) -> ParseResult<Option<T>>
pub fn read_optional_explicit_element<T: Asn1Readable<'a>>(
&mut self,
tag: u8
) -> ParseResult<Option<T>>
This is an alias for read_element::<Option<Explicit<T, tag>>> for use
when MSRV is <1.51.
This is an alias for read_element::<Implicit<T, tag>> for use when
MSRV is <1.51.
pub fn read_optional_implicit_element<T: SimpleAsn1Readable<'a>>(
&mut self,
tag: u8
) -> ParseResult<Option<T>>
pub fn read_optional_implicit_element<T: SimpleAsn1Readable<'a>>(
&mut self,
tag: u8
) -> ParseResult<Option<T>>
This is an alias for read_element::<Option<Implicit<T, tag>>> for use
when MSRV is <1.51.