pub enum ZigElementType {
Show 174 variants
Root,
Whitespace,
Newline,
Comment,
DocComment,
Error,
Eof,
Identifier,
StringLiteral,
CharLiteral,
IntegerLiteral,
FloatLiteral,
BooleanLiteral,
Literal,
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,
FnDeclaration,
VarDeclaration,
StructDeclaration,
EnumDeclaration,
UnionDeclaration,
IfStatement,
WhileStatement,
ForStatement,
ReturnStatement,
Block,
BinaryExpr,
UnaryExpr,
}Variants§
Root
Whitespace
Newline
Comment
DocComment
Error
Eof
Identifier
StringLiteral
CharLiteral
IntegerLiteral
FloatLiteral
BooleanLiteral
Literal
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
FnDeclaration
VarDeclaration
StructDeclaration
EnumDeclaration
UnionDeclaration
IfStatement
WhileStatement
ForStatement
ReturnStatement
Block
BinaryExpr
UnaryExpr
Trait Implementations§
Source§impl Clone for ZigElementType
impl Clone for ZigElementType
Source§fn clone(&self) -> ZigElementType
fn clone(&self) -> ZigElementType
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 ZigElementType
impl Debug for ZigElementType
Source§impl<'de> Deserialize<'de> for ZigElementType
impl<'de> Deserialize<'de> for ZigElementType
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 ElementType for ZigElementType
impl ElementType for ZigElementType
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 From<ZigTokenType> for ZigElementType
impl From<ZigTokenType> for ZigElementType
Source§fn from(token: ZigTokenType) -> Self
fn from(token: ZigTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for ZigElementType
impl Hash for ZigElementType
Source§impl PartialEq for ZigElementType
impl PartialEq for ZigElementType
Source§impl Serialize for ZigElementType
impl Serialize for ZigElementType
impl Copy for ZigElementType
impl Eq for ZigElementType
impl StructuralPartialEq for ZigElementType
Auto Trait Implementations§
impl Freeze for ZigElementType
impl RefUnwindSafe for ZigElementType
impl Send for ZigElementType
impl Sync for ZigElementType
impl Unpin for ZigElementType
impl UnwindSafe for ZigElementType
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