#[repr(u16)]pub enum VomlElementType {
Show 38 variants
Root = 0,
SourceFile = 1,
Module = 2,
Function = 3,
Memory = 4,
Export = 5,
Import = 6,
Param = 7,
Result = 8,
Local = 9,
Instruction = 10,
Int = 11,
Uint = 12,
F32 = 13,
F64 = 14,
String = 15,
Rune = 16,
Byte = 17,
Voidptr = 18,
Char = 19,
Bool = 20,
Identifier = 21,
Number = 22,
Boolean = 23,
LeftParen = 24,
RightParen = 25,
LeftBracket = 26,
RightBracket = 27,
LeftBrace = 28,
RightBrace = 29,
Dot = 30,
Comma = 31,
Colon = 32,
Semicolon = 33,
Whitespace = 34,
Comment = 35,
Error = 36,
Eof = 37,
}Expand description
Enum representing all possible element types in Voml.
Variants§
Root = 0
Root node of the AST.
SourceFile = 1
A source file containing VOML content.
Module = 2
A module definition.
Function = 3
A function definition.
Memory = 4
A memory allocation.
Export = 5
An export declaration.
Import = 6
An import declaration.
Param = 7
A function parameter.
Result = 8
A function result.
Local = 9
A local variable.
Instruction = 10
A single instruction.
Int = 11
Integer type (int).
Uint = 12
Unsigned integer type (uint).
F32 = 13
32-bit floating point type (f32).
F64 = 14
64-bit floating point type (f64).
String = 15
String type.
Rune = 16
Rune (Unicode character) type.
Byte = 17
Byte type.
Voidptr = 18
Void pointer type.
Char = 19
Character type.
Bool = 20
Boolean type.
Identifier = 21
An identifier.
Number = 22
A numeric literal.
Boolean = 23
A boolean literal (true/false).
LeftParen = 24
Left parenthesis (().
RightParen = 25
Right parenthesis ()).
LeftBracket = 26
Left bracket ([).
RightBracket = 27
Right bracket (]).
LeftBrace = 28
Left brace ({).
RightBrace = 29
Right brace (}).
Dot = 30
Dot separator (.).
Comma = 31
Comma separator (,).
Colon = 32
Colon separator (:).
Semicolon = 33
Semicolon separator (;).
Whitespace = 34
Whitespace characters.
Comment = 35
A comment.
Error = 36
An error node representing a syntax error.
Eof = 37
End of file marker.
Trait Implementations§
Source§impl Clone for VomlElementType
impl Clone for VomlElementType
Source§fn clone(&self) -> VomlElementType
fn clone(&self) -> VomlElementType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more