pub enum ZigSyntaxKind {
Show 152 variants
Whitespace,
Newline,
Comment,
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,
C_Short,
C_UShort,
C_Int,
C_UInt,
C_Long,
C_ULong,
C_LongLong,
C_ULongLong,
C_LongDouble,
C_Void,
Void,
Comptime_Int,
Comptime_Float,
Plus,
Minus,
Star,
Slash,
Percent,
StarStar,
PlusPercent,
MinusPercent,
StarPercent,
PlusPlus,
Ampersand,
Pipe,
Caret,
Tilde,
LessLess,
GreaterGreater,
Equal,
NotEqual,
Less,
Greater,
LessEqual,
GreaterEqual,
OrOr,
Assign,
PlusAssign,
MinusAssign,
StarAssign,
SlashAssign,
PercentAssign,
AmpersandAssign,
PipeAssign,
CaretAssign,
LessLessAssign,
GreaterGreaterAssign,
LeftParen,
RightParen,
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
Semicolon,
Comma,
Dot,
DotDot,
DotDotDot,
Colon,
Question,
Exclamation,
Arrow,
FatArrow,
OrElse,
CatchKeyword,
TryKeyword,
AwaitKeyword,
At,
StringEnd,
StringContent,
InterpolationStart,
InterpolationEnd,
MultilineStringEnd,
MultilineStringContent,
DocComment,
Text,
}Variants§
Whitespace
Newline
Comment
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
C_Short
C_UShort
C_Int
C_UInt
C_Long
C_ULong
C_LongLong
C_ULongLong
C_LongDouble
C_Void
Void
Comptime_Int
Comptime_Float
Plus
Minus
Star
Slash
Percent
StarStar
PlusPercent
MinusPercent
StarPercent
PlusPlus
Ampersand
Pipe
Caret
Tilde
LessLess
GreaterGreater
Equal
NotEqual
Less
Greater
LessEqual
GreaterEqual
OrOr
Assign
PlusAssign
MinusAssign
StarAssign
SlashAssign
PercentAssign
AmpersandAssign
PipeAssign
CaretAssign
LessLessAssign
GreaterGreaterAssign
LeftParen
RightParen
LeftBrace
RightBrace
LeftBracket
RightBracket
Semicolon
Comma
Dot
DotDot
DotDotDot
Colon
Question
Exclamation
Arrow
FatArrow
OrElse
CatchKeyword
TryKeyword
AwaitKeyword
At
StringEnd
StringContent
InterpolationStart
InterpolationEnd
MultilineStringEnd
MultilineStringContent
DocComment
Text
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 PartialEq for ZigSyntaxKind
impl PartialEq for ZigSyntaxKind
Source§impl SyntaxKind for ZigSyntaxKind
impl SyntaxKind for ZigSyntaxKind
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 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