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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.