pub enum WatSyntaxKind {
Show 207 variants
Whitespace,
Newline,
Comment,
Error,
Eof,
Text,
IntegerLiteral,
FloatLiteral,
StringLiteral,
Identifier,
ModuleKw,
FuncKw,
ExportKw,
ImportKw,
TypeKw,
ParamKw,
ResultKw,
LocalKw,
GlobalKw,
MemoryKw,
TableKw,
ElemKw,
DataKw,
StartKw,
BlockKw,
LoopKw,
IfKw,
ThenKw,
ElseKw,
EndKw,
BrKw,
BrIfKw,
BrTableKw,
ReturnKw,
CallKw,
CallIndirectKw,
LocalGetKw,
LocalSetKw,
LocalTeeKw,
GlobalGetKw,
GlobalSetKw,
I32LoadKw,
I64LoadKw,
F32LoadKw,
F64LoadKw,
I32Load8SKw,
I32Load8UKw,
I32Load16SKw,
I32Load16UKw,
I64Load8SKw,
I64Load8UKw,
I64Load16SKw,
I64Load16UKw,
I64Load32SKw,
I64Load32UKw,
I32StoreKw,
I64StoreKw,
F32StoreKw,
F64StoreKw,
I32Store8Kw,
I32Store16Kw,
I64Store8Kw,
I64Store16Kw,
I64Store32Kw,
MemorySizeKw,
MemoryGrowKw,
I32ConstKw,
I64ConstKw,
F32ConstKw,
F64ConstKw,
I32AddKw,
I64AddKw,
F32AddKw,
F64AddKw,
I32SubKw,
I64SubKw,
F32SubKw,
F64SubKw,
I32MulKw,
I64MulKw,
F32MulKw,
F64MulKw,
I32DivSKw,
I32DivUKw,
I64DivSKw,
I64DivUKw,
F32DivKw,
F64DivKw,
I32RemSKw,
I32RemUKw,
I64RemSKw,
I64RemUKw,
I32EqKw,
I64EqKw,
F32EqKw,
F64EqKw,
I32NeKw,
I64NeKw,
F32NeKw,
F64NeKw,
I32LtSKw,
I32LtUKw,
I64LtSKw,
I64LtUKw,
F32LtKw,
F64LtKw,
I32GtSKw,
I32GtUKw,
I64GtSKw,
I64GtUKw,
F32GtKw,
F64GtKw,
I32LeSKw,
I32LeUKw,
I64LeSKw,
I64LeUKw,
F32LeKw,
F64LeKw,
I32GeSKw,
I32GeUKw,
I64GeSKw,
I64GeUKw,
F32GeKw,
F64GeKw,
I32AndKw,
I64AndKw,
I32OrKw,
I64OrKw,
I32XorKw,
I64XorKw,
I32ShlKw,
I64ShlKw,
I32ShrSKw,
I32ShrUKw,
I64ShrSKw,
I64ShrUKw,
I32RotlKw,
I64RotlKw,
I32RotrKw,
I64RotrKw,
I32WrapI64Kw,
I64ExtendI32SKw,
I64ExtendI32UKw,
I32TruncF32SKw,
I32TruncF32UKw,
I32TruncF64SKw,
I32TruncF64UKw,
I64TruncF32SKw,
I64TruncF32UKw,
I64TruncF64SKw,
I64TruncF64UKw,
F32ConvertI32SKw,
F32ConvertI32UKw,
F32ConvertI64SKw,
F32ConvertI64UKw,
F64ConvertI32SKw,
F64ConvertI32UKw,
F64ConvertI64SKw,
F64ConvertI64UKw,
F32DemoteF64Kw,
F64PromoteF32Kw,
DropKw,
SelectKw,
UnreachableKw,
NopKw,
I32Kw,
I64Kw,
F32Kw,
F64Kw,
FuncrefKw,
ExternrefKw,
MutKw,
OffsetKw,
AlignKw,
LeftParen,
RightParen,
LeftBracket,
RightBracket,
LeftBrace,
RightBrace,
Semicolon,
Comma,
Dot,
Quote,
Dollar,
Plus,
Minus,
Star,
Slash,
Eq,
Colon,
Question,
Bang,
At,
Hash,
Percent,
Caret,
Ampersand,
LessThan,
GreaterThan,
Backslash,
Pipe,
Tilde,
Root,
SourceFile,
Module,
Item,
}Variants§
Whitespace
Newline
Comment
Error
Eof
Text
IntegerLiteral
FloatLiteral
StringLiteral
Identifier
ModuleKw
FuncKw
ExportKw
ImportKw
TypeKw
ParamKw
ResultKw
LocalKw
GlobalKw
MemoryKw
TableKw
ElemKw
DataKw
StartKw
BlockKw
LoopKw
IfKw
ThenKw
ElseKw
EndKw
BrKw
BrIfKw
BrTableKw
ReturnKw
CallKw
CallIndirectKw
LocalGetKw
LocalSetKw
LocalTeeKw
GlobalGetKw
GlobalSetKw
I32LoadKw
I64LoadKw
F32LoadKw
F64LoadKw
I32Load8SKw
I32Load8UKw
I32Load16SKw
I32Load16UKw
I64Load8SKw
I64Load8UKw
I64Load16SKw
I64Load16UKw
I64Load32SKw
I64Load32UKw
I32StoreKw
I64StoreKw
F32StoreKw
F64StoreKw
I32Store8Kw
I32Store16Kw
I64Store8Kw
I64Store16Kw
I64Store32Kw
MemorySizeKw
MemoryGrowKw
I32ConstKw
I64ConstKw
F32ConstKw
F64ConstKw
I32AddKw
I64AddKw
F32AddKw
F64AddKw
I32SubKw
I64SubKw
F32SubKw
F64SubKw
I32MulKw
I64MulKw
F32MulKw
F64MulKw
I32DivSKw
I32DivUKw
I64DivSKw
I64DivUKw
F32DivKw
F64DivKw
I32RemSKw
I32RemUKw
I64RemSKw
I64RemUKw
I32EqKw
I64EqKw
F32EqKw
F64EqKw
I32NeKw
I64NeKw
F32NeKw
F64NeKw
I32LtSKw
I32LtUKw
I64LtSKw
I64LtUKw
F32LtKw
F64LtKw
I32GtSKw
I32GtUKw
I64GtSKw
I64GtUKw
F32GtKw
F64GtKw
I32LeSKw
I32LeUKw
I64LeSKw
I64LeUKw
F32LeKw
F64LeKw
I32GeSKw
I32GeUKw
I64GeSKw
I64GeUKw
F32GeKw
F64GeKw
I32AndKw
I64AndKw
I32OrKw
I64OrKw
I32XorKw
I64XorKw
I32ShlKw
I64ShlKw
I32ShrSKw
I32ShrUKw
I64ShrSKw
I64ShrUKw
I32RotlKw
I64RotlKw
I32RotrKw
I64RotrKw
I32WrapI64Kw
I64ExtendI32SKw
I64ExtendI32UKw
I32TruncF32SKw
I32TruncF32UKw
I32TruncF64SKw
I32TruncF64UKw
I64TruncF32SKw
I64TruncF32UKw
I64TruncF64SKw
I64TruncF64UKw
F32ConvertI32SKw
F32ConvertI32UKw
F32ConvertI64SKw
F32ConvertI64UKw
F64ConvertI32SKw
F64ConvertI32UKw
F64ConvertI64SKw
F64ConvertI64UKw
F32DemoteF64Kw
F64PromoteF32Kw
DropKw
SelectKw
UnreachableKw
NopKw
I32Kw
I64Kw
F32Kw
F64Kw
FuncrefKw
ExternrefKw
MutKw
OffsetKw
AlignKw
LeftParen
RightParen
LeftBracket
RightBracket
LeftBrace
RightBrace
Semicolon
Comma
Dot
Quote
Dollar
Plus
Minus
Star
Slash
Eq
Colon
Question
Bang
At
Hash
Percent
Caret
Ampersand
LessThan
GreaterThan
Backslash
Pipe
Tilde
Root
SourceFile
Module
Item
Trait Implementations§
Source§impl Clone for WatSyntaxKind
impl Clone for WatSyntaxKind
Source§fn clone(&self) -> WatSyntaxKind
fn clone(&self) -> WatSyntaxKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WatSyntaxKind
impl Debug for WatSyntaxKind
Source§impl ElementType for WatSyntaxKind
impl ElementType for WatSyntaxKind
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl Hash for WatSyntaxKind
impl Hash for WatSyntaxKind
Source§impl PartialEq for WatSyntaxKind
impl PartialEq for WatSyntaxKind
Source§impl Serialize for WatSyntaxKind
impl Serialize for WatSyntaxKind
Source§impl TokenType for WatSyntaxKind
impl TokenType for WatSyntaxKind
Source§const END_OF_STREAM: Self = Self::Eof
const END_OF_STREAM: Self = Self::Eof
A constant representing the end of the input stream. Read more
Source§type Role = UniversalTokenRole
type Role = UniversalTokenRole
The associated role type for this token kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this token matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalTokenRole) -> bool
fn is_universal(&self, role: UniversalTokenRole) -> bool
Returns true if this token matches the specified universal role.
Source§fn is_comment(&self) -> bool
fn is_comment(&self) -> bool
Returns true if this token represents a comment. Read more
Source§fn is_whitespace(&self) -> bool
fn is_whitespace(&self) -> bool
Returns true if this token represents whitespace. Read more
Source§fn is_error(&self) -> bool
fn is_error(&self) -> bool
Returns true if this token represents an error condition. Read more
Source§fn is_ignored(&self) -> bool
fn is_ignored(&self) -> bool
Returns true if this token represents trivia (whitespace, comments, etc.). Read more
Source§fn is_end_of_stream(&self) -> bool
fn is_end_of_stream(&self) -> bool
Returns true if this token represents the end of the input stream. Read more
impl Copy for WatSyntaxKind
impl Eq for WatSyntaxKind
impl StructuralPartialEq for WatSyntaxKind
Auto Trait Implementations§
impl Freeze for WatSyntaxKind
impl RefUnwindSafe for WatSyntaxKind
impl Send for WatSyntaxKind
impl Sync for WatSyntaxKind
impl Unpin for WatSyntaxKind
impl UnwindSafe for WatSyntaxKind
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