[][src]Enum webidl::Token

pub enum Token {
    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,
}

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

AnyArrayBufferAttributeBooleanByteByteStringCallbackConstDataViewDeleterDictionaryDOMStringDoubleEnumErrorFalseFloatFloat32ArrayFloat64ArrayFrozenArrayGetterImplementsIncludesInheritInt16ArrayInt32ArrayInt8ArrayInterfaceIterableLegacyCallerLongMaplikeMixinNamespaceNaNNegativeInfinityNullObjectOctetOptionalOrPartialPositiveInfinityPromiseReadOnlyRecordRequiredSequenceSetlikeSetterShortStaticStringifierSymbolTrueTypedefUSVStringUint16ArrayUint32ArrayUint8ArrayUint8ClampedArrayUnrestrictedUnsignedVoidFloatLiteral(f64)Identifier(String)OtherLiteral(char)SignedIntegerLiteral(i64)StringLiteral(String)UnsignedIntegerLiteral(u64)ColonCommaEllipsisEqualsGreaterThanHyphenLeftBraceLeftBracketLeftParenthesisLessThanPeriodQuestionMarkRightBraceRightBracketRightParenthesisSemicolon

Trait Implementations

impl PartialEq<Token> for Token[src]

impl Clone for Token[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Token[src]

impl Debug for Token[src]

Auto Trait Implementations

impl Send for Token

impl Sync for Token

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]