pub enum WitSyntaxKind {
Show 79 variants
Whitespace,
Newline,
Comment,
Error,
Eof,
Text,
IntegerLiteral,
FloatLiteral,
StringLiteral,
Identifier,
WorldKw,
InterfaceKw,
PackageKw,
ComponentKw,
InstanceKw,
ModuleKw,
CoreKw,
FuncKw,
TypeKw,
RecordKw,
VariantKw,
EnumKw,
FlagsKw,
UnionKw,
TupleKw,
ListKw,
OptionKw,
ResultKw,
ResourceKw,
ImportKw,
ExportKw,
UseKw,
IncludeKw,
WithKw,
StaticKw,
ConstructorKw,
MethodKw,
BoolKw,
U8Kw,
U16Kw,
U32Kw,
U64Kw,
S8Kw,
S16Kw,
S32Kw,
S64Kw,
F32Kw,
F64Kw,
CharKw,
StringKw,
Arrow,
FatArrow,
Assign,
Colon,
Semicolon,
Comma,
Dot,
Question,
At,
Hash,
Dollar,
Percent,
Ampersand,
Star,
Plus,
Minus,
Slash,
Lt,
Gt,
Pipe,
Caret,
Tilde,
Bang,
LeftParen,
RightParen,
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
}Variants§
Whitespace
Newline
Comment
Error
Eof
Text
IntegerLiteral
FloatLiteral
StringLiteral
Identifier
WorldKw
InterfaceKw
PackageKw
ComponentKw
InstanceKw
ModuleKw
CoreKw
FuncKw
TypeKw
RecordKw
VariantKw
EnumKw
FlagsKw
UnionKw
TupleKw
ListKw
OptionKw
ResultKw
ResourceKw
ImportKw
ExportKw
UseKw
IncludeKw
WithKw
StaticKw
ConstructorKw
MethodKw
BoolKw
U8Kw
U16Kw
U32Kw
U64Kw
S8Kw
S16Kw
S32Kw
S64Kw
F32Kw
F64Kw
CharKw
StringKw
Arrow
FatArrow
Assign
Colon
Semicolon
Comma
Dot
Question
At
Hash
Dollar
Percent
Ampersand
Star
Plus
Minus
Slash
Lt
Gt
Pipe
Caret
Tilde
Bang
LeftParen
RightParen
LeftBrace
RightBrace
LeftBracket
RightBracket
Trait Implementations§
Source§impl Clone for WitSyntaxKind
impl Clone for WitSyntaxKind
Source§fn clone(&self) -> WitSyntaxKind
fn clone(&self) -> WitSyntaxKind
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 WitSyntaxKind
impl Debug for WitSyntaxKind
Source§impl PartialEq for WitSyntaxKind
impl PartialEq for WitSyntaxKind
Source§impl SyntaxKind for WitSyntaxKind
impl SyntaxKind for WitSyntaxKind
Source§fn is_trivia(&self) -> bool
fn is_trivia(&self) -> bool
Returns true if this kind represents trivia (whitespace, comments, etc.). Read more
Source§fn is_comment(&self) -> bool
fn is_comment(&self) -> bool
Returns true if this kind represents a comment. Read more
Source§fn is_whitespace(&self) -> bool
fn is_whitespace(&self) -> bool
Returns true if this kind represents whitespace.
Source§fn is_token_type(&self) -> bool
fn is_token_type(&self) -> bool
Returns true if this kind represents a token type. Read more
Source§fn is_element_type(&self) -> bool
fn is_element_type(&self) -> bool
Returns true if this kind represents an element type. Read more
impl Copy for WitSyntaxKind
impl Eq for WitSyntaxKind
impl StructuralPartialEq for WitSyntaxKind
Auto Trait Implementations§
impl Freeze for WitSyntaxKind
impl RefUnwindSafe for WitSyntaxKind
impl Send for WitSyntaxKind
impl Sync for WitSyntaxKind
impl Unpin for WitSyntaxKind
impl UnwindSafe for WitSyntaxKind
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