pub enum Token<'input> {
Show 133 variants Identifier(&'input str), StringLiteral(bool, &'input str), AddressLiteral(&'input str), HexLiteral(&'input str), Number(&'input str, &'input str), RationalNumber(&'input str, &'input str, &'input str), HexNumber(&'input str), Divide, Contract, Library, Interface, Function, Pragma, Import, Struct, Event, Error, Enum, Type, Memory, Storage, Calldata, Public, Private, Internal, External, Constant, New, Delete, Pure, View, Payable, Do, Continue, Break, Throw, Emit, Return, Returns, Revert, Uint(u16), Int(u16), Bytes(u8), Byte, DynamicBytes, Bool, Address, String, Semicolon, Comma, OpenParenthesis, CloseParenthesis, OpenCurlyBrace, CloseCurlyBrace, BitwiseOr, BitwiseOrAssign, Or, BitwiseXor, BitwiseXorAssign, BitwiseAnd, BitwiseAndAssign, And, AddAssign, Increment, Add, SubtractAssign, Decrement, Subtract, MulAssign, Mul, Power, DivideAssign, ModuloAssign, Modulo, Equal, Assign, ColonAssign, NotEqual, Not, True, False, Else, Anonymous, For, While, If, ShiftRight, ShiftRightAssign, Less, LessEqual, ShiftLeft, ShiftLeftAssign, More, MoreEqual, Constructor, Indexed, Member, Colon, OpenBracket, CloseBracket, Complement, Question, Mapping, Arrow, Try, Catch, Receive, Fallback, Seconds, Minutes, Hours, Days, Weeks, Gwei, Wei, Ether, This, As, Is, Abstract, Virtual, Override, Using, Modifier, Immutable, Unchecked, Assembly, Let, Leave, Switch, Case, Default, YulArrow,
}

Variants

Identifier(&'input str)

StringLiteral(bool, &'input str)

AddressLiteral(&'input str)

HexLiteral(&'input str)

Number(&'input str, &'input str)

RationalNumber(&'input str, &'input str, &'input str)

HexNumber(&'input str)

Divide

Contract

Library

Interface

Function

Pragma

Import

Struct

Event

Error

Enum

Type

Memory

Storage

Calldata

Public

Private

Internal

External

Constant

New

Delete

Pure

View

Payable

Do

Continue

Break

Throw

Emit

Return

Returns

Revert

Uint(u16)

Int(u16)

Bytes(u8)

Byte

DynamicBytes

Bool

Address

String

Semicolon

Comma

OpenParenthesis

CloseParenthesis

OpenCurlyBrace

CloseCurlyBrace

BitwiseOr

BitwiseOrAssign

Or

BitwiseXor

BitwiseXorAssign

BitwiseAnd

BitwiseAndAssign

And

AddAssign

Increment

Add

SubtractAssign

Decrement

Subtract

MulAssign

Mul

Power

DivideAssign

ModuloAssign

Modulo

Equal

Assign

ColonAssign

NotEqual

Not

True

False

Else

Anonymous

For

While

If

ShiftRight

ShiftRightAssign

Less

LessEqual

ShiftLeft

ShiftLeftAssign

More

MoreEqual

Constructor

Indexed

Member

Colon

OpenBracket

CloseBracket

Complement

Question

Mapping

Arrow

Try

Catch

Receive

Fallback

Seconds

Minutes

Hours

Days

Weeks

Gwei

Wei

Ether

This

As

Is

Abstract

Virtual

Override

Using

Modifier

Immutable

Unchecked

Assembly

Let

Leave

Switch

Case

Default

YulArrow

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
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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
Converts the given value to a String. 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.