pub enum Token {
Show 86 variants
Any,
ArrayBuffer,
Attribute,
Boolean,
Byte,
ByteString,
Callback,
Const,
DataView,
Deleter,
Dictionary,
DOMString,
Double,
Enum,
Error,
False,
Float,
Float32Array,
Float64Array,
FrozenArray,
Getter,
Implements,
Includes,
Inherit,
Int16Array,
Int32Array,
Int8Array,
Interface,
Iterable,
LegacyCaller,
Long,
Maplike,
Mixin,
Namespace,
NaN,
NegativeInfinity,
Null,
Object,
Octet,
Optional,
Or,
Partial,
PositiveInfinity,
Promise,
ReadOnly,
Record,
Required,
Sequence,
Setlike,
Setter,
Short,
Static,
Stringifier,
Symbol,
True,
Typedef,
USVString,
Uint16Array,
Uint32Array,
Uint8Array,
Uint8ClampedArray,
Unrestricted,
Unsigned,
Void,
FloatLiteral(f64),
Identifier(String),
OtherLiteral(char),
SignedIntegerLiteral(i64),
StringLiteral(String),
UnsignedIntegerLiteral(u64),
Colon,
Comma,
Ellipsis,
Equals,
GreaterThan,
Hyphen,
LeftBrace,
LeftBracket,
LeftParenthesis,
LessThan,
Period,
QuestionMark,
RightBrace,
RightBracket,
RightParenthesis,
Semicolon,
}
Expand description
An enum of all possible tokens allowed by the
WebIDL grammar A token in this case is a
terminal, either a static string or regular expression based token. Note that not all possible
simplifications are made such as converting the True
and False
tokens to actual booleans.
This choice was made to be as consistent as possible with the WebIDL grammar.
Variants§
Any
ArrayBuffer
Attribute
Boolean
Byte
ByteString
Callback
Const
DataView
Deleter
Dictionary
DOMString
Double
Enum
Error
False
Float
Float32Array
Float64Array
FrozenArray
Getter
Implements
Includes
Inherit
Int16Array
Int32Array
Int8Array
Interface
Iterable
LegacyCaller
Long
Maplike
Mixin
Namespace
NaN
NegativeInfinity
Null
Object
Octet
Optional
Or
Partial
PositiveInfinity
Promise
ReadOnly
Record
Required
Sequence
Setlike
Setter
Short
Static
Stringifier
Symbol
True
Typedef
USVString
Uint16Array
Uint32Array
Uint8Array
Uint8ClampedArray
Unrestricted
Unsigned
Void
FloatLiteral(f64)
Identifier(String)
OtherLiteral(char)
SignedIntegerLiteral(i64)
StringLiteral(String)
UnsignedIntegerLiteral(u64)
Colon
Comma
Ellipsis
Equals
GreaterThan
Hyphen
LeftBrace
LeftBracket
LeftParenthesis
LessThan
Period
QuestionMark
RightBrace
RightBracket
RightParenthesis
Semicolon
Trait Implementations§
impl StructuralPartialEq for Token
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