pub enum ZigSyntaxKind {
Show 171 variants
Root,
Whitespace,
Newline,
Comment,
DocComment,
Error,
Eof,
Identifier,
StringLiteral,
CharLiteral,
IntegerLiteral,
FloatLiteral,
BooleanLiteral,
Const,
Var,
Fn,
Struct,
Union,
Enum,
Opaque,
Type,
Comptime,
Inline,
NoInline,
Pub,
Export,
Extern,
Packed,
Align,
CallConv,
LinkSection,
If,
Else,
Switch,
While,
For,
Break,
Continue,
Return,
Defer,
ErrDefer,
Unreachable,
NoReturn,
ErrorKeyword,
Test,
Async,
Await,
Suspend,
Resume,
Cancel,
Undefined,
Null,
Volatile,
AllowZero,
NoAlias,
And,
Or,
AnyFrame,
AnyType,
ThreadLocal,
Bool,
I8,
I16,
I32,
I64,
I128,
Isize,
U8,
U16,
U32,
U64,
U128,
Usize,
F16,
F32,
F64,
F80,
F128,
CShort,
CUshort,
CInt,
CUint,
CLong,
CUlong,
CLongLong,
CUlongLong,
CLongDouble,
CVoid,
Void,
ComptimeInt,
ComptimeFloat,
Plus,
Minus,
Star,
Slash,
Percent,
StarStar,
PlusPercent,
MinusPercent,
StarPercent,
PlusPlus,
MinusMinus,
Ampersand,
Pipe,
Caret,
Tilde,
LessLess,
GreaterGreater,
Equal,
NotEqual,
Less,
Greater,
LessEqual,
GreaterEqual,
AndAnd,
OrOr,
Assign,
PlusAssign,
MinusAssign,
StarAssign,
SlashAssign,
PercentAssign,
AmpersandAssign,
PipeAssign,
CaretAssign,
LessLessAssign,
GreaterGreaterAssign,
LeftParen,
RightParen,
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
Semicolon,
Comma,
Dot,
DotDot,
DotDotDot,
DotQuestion,
DotStar,
Colon,
Question,
Exclamation,
Arrow,
FatArrow,
OrElse,
CatchKeyword,
TryKeyword,
AwaitKeyword,
At,
BuiltinIdentifier,
StringStart,
StringEnd,
StringContent,
InterpolationStart,
InterpolationEnd,
MultilineStringStart,
MultilineStringEnd,
MultilineStringContent,
CompileDirective,
Text,
VarDeclaration,
FnDeclaration,
StructDeclaration,
EnumDeclaration,
UnionDeclaration,
Block,
IfStatement,
WhileStatement,
ForStatement,
ReturnStatement,
}Variants§
Root
Whitespace
Newline
Comment
DocComment
Error
Eof
Identifier
StringLiteral
CharLiteral
IntegerLiteral
FloatLiteral
BooleanLiteral
Const
Var
Fn
Struct
Union
Enum
Opaque
Type
Comptime
Inline
NoInline
Pub
Export
Extern
Packed
Align
CallConv
LinkSection
If
Else
Switch
While
For
Break
Continue
Return
Defer
ErrDefer
Unreachable
NoReturn
ErrorKeyword
Test
Async
Await
Suspend
Resume
Cancel
Undefined
Null
Volatile
AllowZero
NoAlias
And
Or
AnyFrame
AnyType
ThreadLocal
Bool
I8
I16
I32
I64
I128
Isize
U8
U16
U32
U64
U128
Usize
F16
F32
F64
F80
F128
CShort
CUshort
CInt
CUint
CLong
CUlong
CLongLong
CUlongLong
CLongDouble
CVoid
Void
ComptimeInt
ComptimeFloat
Plus
Minus
Star
Slash
Percent
StarStar
PlusPercent
MinusPercent
StarPercent
PlusPlus
MinusMinus
Ampersand
Pipe
Caret
Tilde
LessLess
GreaterGreater
Equal
NotEqual
Less
Greater
LessEqual
GreaterEqual
AndAnd
OrOr
Assign
PlusAssign
MinusAssign
StarAssign
SlashAssign
PercentAssign
AmpersandAssign
PipeAssign
CaretAssign
LessLessAssign
GreaterGreaterAssign
LeftParen
RightParen
LeftBrace
RightBrace
LeftBracket
RightBracket
Semicolon
Comma
Dot
DotDot
DotDotDot
DotQuestion
DotStar
Colon
Question
Exclamation
Arrow
FatArrow
OrElse
CatchKeyword
TryKeyword
AwaitKeyword
At
BuiltinIdentifier
StringStart
StringEnd
StringContent
InterpolationStart
InterpolationEnd
MultilineStringStart
MultilineStringEnd
MultilineStringContent
CompileDirective
Text
VarDeclaration
FnDeclaration
StructDeclaration
EnumDeclaration
UnionDeclaration
Block
IfStatement
WhileStatement
ForStatement
ReturnStatement
Trait Implementations§
Source§impl Clone for ZigSyntaxKind
impl Clone for ZigSyntaxKind
Source§fn clone(&self) -> ZigSyntaxKind
fn clone(&self) -> ZigSyntaxKind
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 ZigSyntaxKind
impl Debug for ZigSyntaxKind
Source§impl ElementType for ZigSyntaxKind
impl ElementType for ZigSyntaxKind
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 ZigSyntaxKind
impl Hash for ZigSyntaxKind
Source§impl PartialEq for ZigSyntaxKind
impl PartialEq for ZigSyntaxKind
Source§impl TokenType for ZigSyntaxKind
impl TokenType for ZigSyntaxKind
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_ignored(&self) -> bool
fn is_ignored(&self) -> bool
Returns true if this token represents trivia (whitespace, comments, etc.). Read more
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_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_error(&self) -> bool
fn is_error(&self) -> bool
Returns true if this token represents an error condition. 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 ZigSyntaxKind
impl Eq for ZigSyntaxKind
impl StructuralPartialEq for ZigSyntaxKind
Auto Trait Implementations§
impl Freeze for ZigSyntaxKind
impl RefUnwindSafe for ZigSyntaxKind
impl Send for ZigSyntaxKind
impl Sync for ZigSyntaxKind
impl Unpin for ZigSyntaxKind
impl UnwindSafe for ZigSyntaxKind
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