Enum valkyrie_parser::ValkyrieRule
source · #[repr(u32)]pub enum ValkyrieRule {
Show 90 variants
Program = 0,
Statement = 1,
EOS = 2,
EOS_FREE = 3,
DefineNamespace = 4,
OP_NAMESPACE = 5,
DefineImport = 6,
ImportTerm = 7,
ImportAs = 8,
ImportAll = 9,
ImportBlock = 10,
ImportMacro = 11,
ImportMacroItem = 12,
DefineClass = 13,
ClassBlock = 14,
ClassBlockItem = 15,
ClassInherit = 16,
ClassInheritItem = 17,
ClassField = 18,
ClassMethod = 19,
ClassDomain = 20,
DefineTemplate = 21,
TemplateParameters = 22,
TemplateBlock = 23,
TemplateStatement = 24,
TemplateImplements = 25,
WhereBlock = 26,
WhereBound = 27,
KW_CLASS = 28,
DefineUnion = 29,
KW_UNION = 30,
DefineTrait = 31,
KW_TRAIT = 32,
WhileStatement = 33,
KW_WHILE = 34,
ForStatement = 35,
MainStatement = 36,
MainExpression = 37,
MainTerm = 38,
MainFactor = 39,
MainInfix = 40,
MainPrefix = 41,
MainSuffix = 42,
InlineExpression = 43,
InlineTerm = 44,
InlineFactor = 45,
RangeCall = 46,
RangeLiteral = 47,
RangeAxis = 48,
RangeOmit = 49,
Atomic = 50,
NamepathFree = 51,
Namepath = 52,
Identifier = 53,
IdentifierBare = 54,
IdentifierRaw = 55,
IdentifierRawText = 56,
Boolean = 57,
Integer = 58,
RangeExact = 59,
Range = 60,
ModifierCall = 61,
COMMA = 62,
COLON = 63,
PROPORTION = 64,
DOT = 65,
OP_IMPORT_ALL = 66,
OP_AND_THEN = 67,
OP_BIND = 68,
KW_NAMESPACE = 69,
KW_IMPORT = 70,
KW_TEMPLATE = 71,
KW_WHERE = 72,
KW_IMPLEMENTS = 73,
KW_EXTENDS = 74,
KW_INHERITS = 75,
KW_IF = 76,
KW_ELSE = 77,
KW_FOR = 78,
KW_RETURN = 79,
KW_BREAK = 80,
KW_CONTINUE = 81,
KW_NOT = 82,
KW_IN = 83,
KW_IS = 84,
KW_AS = 85,
WhiteSpace = 86,
Comment = 87,
IgnoreText = 88,
IgnoreRegex = 89,
}Variants§
Program = 0
Statement = 1
EOS = 2
EOS_FREE = 3
DefineNamespace = 4
OP_NAMESPACE = 5
DefineImport = 6
ImportTerm = 7
ImportAs = 8
ImportAll = 9
ImportBlock = 10
ImportMacro = 11
ImportMacroItem = 12
DefineClass = 13
ClassBlock = 14
ClassBlockItem = 15
ClassInherit = 16
ClassInheritItem = 17
ClassField = 18
ClassMethod = 19
ClassDomain = 20
DefineTemplate = 21
TemplateParameters = 22
TemplateBlock = 23
TemplateStatement = 24
TemplateImplements = 25
WhereBlock = 26
WhereBound = 27
KW_CLASS = 28
DefineUnion = 29
KW_UNION = 30
DefineTrait = 31
KW_TRAIT = 32
WhileStatement = 33
KW_WHILE = 34
ForStatement = 35
MainStatement = 36
MainExpression = 37
MainTerm = 38
MainFactor = 39
MainInfix = 40
MainPrefix = 41
MainSuffix = 42
InlineExpression = 43
InlineTerm = 44
InlineFactor = 45
RangeCall = 46
RangeLiteral = 47
RangeAxis = 48
RangeOmit = 49
Atomic = 50
NamepathFree = 51
Namepath = 52
Identifier = 53
IdentifierBare = 54
IdentifierRaw = 55
IdentifierRawText = 56
Boolean = 57
Integer = 58
RangeExact = 59
Range = 60
ModifierCall = 61
COMMA = 62
COLON = 63
PROPORTION = 64
DOT = 65
OP_IMPORT_ALL = 66
OP_AND_THEN = 67
OP_BIND = 68
KW_NAMESPACE = 69
KW_IMPORT = 70
KW_TEMPLATE = 71
KW_WHERE = 72
KW_IMPLEMENTS = 73
KW_EXTENDS = 74
KW_INHERITS = 75
KW_IF = 76
KW_ELSE = 77
KW_FOR = 78
KW_RETURN = 79
KW_BREAK = 80
KW_CONTINUE = 81
KW_NOT = 82
KW_IN = 83
KW_IS = 84
KW_AS = 85
WhiteSpace = 86
Comment = 87
IgnoreText = 88
Label for text literal
IgnoreRegex = 89
Label for regex literal
Trait Implementations§
source§impl Clone for ValkyrieRule
impl Clone for ValkyrieRule
source§fn clone(&self) -> ValkyrieRule
fn clone(&self) -> ValkyrieRule
Returns a copy 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 ValkyrieRule
impl Debug for ValkyrieRule
source§impl Hash for ValkyrieRule
impl Hash for ValkyrieRule
source§impl Ord for ValkyrieRule
impl Ord for ValkyrieRule
source§fn cmp(&self, other: &ValkyrieRule) -> Ordering
fn cmp(&self, other: &ValkyrieRule) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ValkyrieRule
impl PartialEq for ValkyrieRule
source§fn eq(&self, other: &ValkyrieRule) -> bool
fn eq(&self, other: &ValkyrieRule) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ValkyrieRule
impl PartialOrd for ValkyrieRule
source§fn partial_cmp(&self, other: &ValkyrieRule) -> Option<Ordering>
fn partial_cmp(&self, other: &ValkyrieRule) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl YggdrasilRule for ValkyrieRule
impl YggdrasilRule for ValkyrieRule
impl Copy for ValkyrieRule
impl Eq for ValkyrieRule
impl StructuralEq for ValkyrieRule
impl StructuralPartialEq for ValkyrieRule
Auto Trait Implementations§
impl RefUnwindSafe for ValkyrieRule
impl Send for ValkyrieRule
impl Sync for ValkyrieRule
impl Unpin for ValkyrieRule
impl UnwindSafe for ValkyrieRule
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