pub struct Parser<'a> { /* private fields */ }
Expand description
Encapsulates an ongoing parse. For almost all use-cases the correct
entry-point is parse
or parse_single
.
Implementations§
source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Tests whether there is any data remaining in the Parser. Generally
useful when parsing a SEQUENCE OF
.
sourcepub fn read_element<T: Asn1Readable<'a>>(&mut self) -> ParseResult<T>
pub fn read_element<T: Asn1Readable<'a>>(&mut self) -> ParseResult<T>
Reads a single ASN.1 element from the parser. Which type you are reading is determined by
the type parameter T
.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> Send for Parser<'a>
impl<'a> Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnwindSafe for Parser<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more