pub enum Token<'input> {
Show 132 variants Identifier(&'input str), StringLiteral(&'input str), AddressLiteral(&'input str), HexLiteral(&'input str), Number(&'input str, &'input str), RationalNumber(&'input str, &'input str, &'input str), HexNumber(&'input str), DocComment(CommentType, &'input str), Divide, Contract, Library, Interface, Function, Pragma, Import, Struct, Event, Error, Enum, Memory, Storage, Calldata, Public, Private, Internal, External, Constant, New, Delete, Pure, View, Payable, Do, Continue, Break, Throw, Emit, Return, Returns, Uint(u16), Int(u16), Bytes(u8), 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, Wei, Szabo, Finney, Ether, This, As, Is, Abstract, Virtual, Override, Using, Modifier, Immutable, Unchecked, Assembly, Let, Leave, Switch, Case, Default, AssemblyArrow,
}

Variants

Identifier(&'input str)

StringLiteral(&'input str)

AddressLiteral(&'input str)

HexLiteral(&'input str)

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

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

HexNumber(&'input str)

DocComment(CommentType, &'input str)

Divide

Contract

Library

Interface

Function

Pragma

Import

Struct

Event

Error

Enum

Memory

Storage

Calldata

Public

Private

Internal

External

Constant

New

Delete

Pure

View

Payable

Do

Continue

Break

Throw

Emit

Return

Returns

Uint(u16)

Int(u16)

Bytes(u8)

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

Wei

Szabo

Finney

Ether

This

As

Is

Abstract

Virtual

Override

Using

Modifier

Immutable

Unchecked

Assembly

Let

Leave

Switch

Case

Default

AssemblyArrow

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 !=.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.