pub enum TokenKind {
Show 187 variants
Die,
Self_,
Parent,
Backtick,
StartDocString(DocStringKind),
EndDocString(DocStringIndentationKind, usize),
From,
Print,
Dollar,
HaltCompiler,
Readonly,
Global,
Abstract,
Ampersand,
AmpersandEquals,
And,
AndEquals,
Array,
ArrayCast,
Arrow,
QuestionArrow,
At,
As,
Asterisk,
Attribute,
Bang,
BangEquals,
AngledLeftRight,
BangDoubleEquals,
Spaceship,
BoolCast,
BooleanCast,
BooleanAnd,
BooleanOr,
Break,
Callable,
Caret,
CaretEquals,
Case,
Catch,
Class,
ClassConstant,
TraitConstant,
FunctionConstant,
MethodConstant,
LineConstant,
FileConstant,
Clone,
MinusEquals,
CloseTag,
DoubleQuestion,
DoubleQuestionEquals,
AsteriskEquals,
Colon,
Comma,
SingleLineComment,
HashMarkComment,
MultiLineComment,
DocumentComment,
Const,
LiteralSingleQuotedString,
LiteralDoubleQuotedString,
Continue,
CurlyOpen,
Declare,
Decrement,
Default,
DirConstant,
DivEquals,
Do,
DollarLeftBrace,
Dot,
DotEquals,
DoubleArrow,
DoubleCast,
RealCast,
FloatCast,
DoubleColon,
DoubleEquals,
DoubleQuote,
Echo,
Ellipsis,
Else,
ElseIf,
Empty,
EndDeclare,
EndFor,
EndForeach,
EndIf,
EndSwitch,
EndWhile,
Enum,
Eof,
Equals,
Extends,
False,
Final,
Finally,
LiteralFloat,
Fn,
For,
Foreach,
FullyQualifiedIdentifier,
Function,
Goto,
GreaterThan,
GreaterThanEquals,
Identifier,
If,
Implements,
Include,
IncludeOnce,
Increment,
InlineHtml,
Instanceof,
Insteadof,
Eval,
Exit,
Unset,
Isset,
List,
LiteralInteger,
IntCast,
IntegerCast,
Interface,
LeftBrace,
LeftBracket,
LeftParen,
LeftShift,
LeftShiftEquals,
RightShift,
RightShiftEquals,
LessThan,
LessThanEquals,
Match,
Minus,
Namespace,
NamespaceSeparator,
NamespaceConstant,
CompilerHaltOffsetConstant,
New,
Null,
ObjectCast,
UnsetCast,
OpenTag(OpenTagKind),
Percent,
PercentEquals,
Pipe,
PipeEquals,
Plus,
PlusEquals,
Pow,
PowEquals,
Private,
Protected,
Public,
QualifiedIdentifier,
Question,
QuestionColon,
Require,
RequireOnce,
Return,
RightBrace,
RightBracket,
RightParen,
SemiColon,
Slash,
SlashEquals,
Static,
StringCast,
BinaryCast,
StringPart,
Switch,
Throw,
Trait,
TripleEquals,
True,
Try,
Use,
Var,
Variable,
Yield,
While,
BitwiseNot,
LogicalAnd,
LogicalOr,
LogicalXor,
}
Variants§
Die
Self_
Parent
Backtick
StartDocString(DocStringKind)
EndDocString(DocStringIndentationKind, usize)
From
Dollar
HaltCompiler
Readonly
Global
Abstract
Ampersand
AmpersandEquals
And
AndEquals
Array
ArrayCast
Arrow
QuestionArrow
At
As
Asterisk
Attribute
Bang
BangEquals
AngledLeftRight
BangDoubleEquals
Spaceship
BoolCast
BooleanCast
BooleanAnd
BooleanOr
Break
Callable
Caret
CaretEquals
Case
Catch
Class
ClassConstant
TraitConstant
FunctionConstant
MethodConstant
LineConstant
FileConstant
Clone
MinusEquals
CloseTag
DoubleQuestion
DoubleQuestionEquals
AsteriskEquals
Colon
Comma
SingleLineComment
HashMarkComment
MultiLineComment
DocumentComment
Const
LiteralSingleQuotedString
LiteralDoubleQuotedString
Continue
CurlyOpen
Declare
Decrement
Default
DirConstant
DivEquals
Do
DollarLeftBrace
Dot
DotEquals
DoubleArrow
DoubleCast
RealCast
FloatCast
DoubleColon
DoubleEquals
DoubleQuote
Echo
Ellipsis
Else
ElseIf
Empty
EndDeclare
EndFor
EndForeach
EndIf
EndSwitch
EndWhile
Enum
Eof
Equals
Extends
False
Final
Finally
LiteralFloat
Fn
For
Foreach
FullyQualifiedIdentifier
Function
Goto
GreaterThan
GreaterThanEquals
Identifier
If
Implements
Include
IncludeOnce
Increment
InlineHtml
Instanceof
Insteadof
Eval
Exit
Unset
Isset
List
LiteralInteger
IntCast
IntegerCast
Interface
LeftBrace
LeftBracket
LeftParen
LeftShift
LeftShiftEquals
RightShift
RightShiftEquals
LessThan
LessThanEquals
Match
Minus
Namespace
NamespaceSeparator
NamespaceConstant
CompilerHaltOffsetConstant
New
Null
ObjectCast
UnsetCast
OpenTag(OpenTagKind)
Percent
PercentEquals
Pipe
PipeEquals
Plus
PlusEquals
Pow
PowEquals
Private
Protected
Public
QualifiedIdentifier
Question
QuestionColon
Require
RequireOnce
Return
RightBrace
RightBracket
RightParen
SemiColon
Slash
SlashEquals
Static
StringCast
BinaryCast
StringPart
Switch
Throw
Trait
TripleEquals
True
Try
Use
Var
Variable
Yield
While
BitwiseNot
LogicalAnd
LogicalOr
LogicalXor
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TokenKind
impl<'de> Deserialize<'de> for TokenKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for TokenKind
impl JsonSchema for TokenKind
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreimpl Eq for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnwindSafe for TokenKind
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