pub struct Token { /* private fields */ }
Expand description
A parsed token before AST is created.
Going through an ASN.1 module source results in a vector of parsed tokens of appropriate types. Each parsed token contains the ‘type’, where it is found in the source (‘span’) and the actual token string.
The tokens are then used by the Parser to ‘resolve’ type and value definitions that generates the AST.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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