#[repr(u32)]
pub enum ValkyrieRule {
Show 240 variants Program = 0, Statement = 1, EOS = 2, EOS_FREE = 3, DefineNamespace = 4, OP_NAMESPACE = 5, DefineImport = 6, ImportBlock = 7, ImportTerm = 8, ImportAll = 9, ImportSpace = 10, ImportName = 11, ImportAs = 12, ImportNameItem = 13, DefineConstraint = 14, ConstraintParameters = 15, ConstraintBlock = 16, ConstraintStatement = 17, ConstraintImplements = 18, WhereBlock = 19, WhereBound = 20, DefineClass = 21, ClassBlock = 22, ClassTerm = 23, KW_CLASS = 24, DefineField = 25, ParameterDefault = 26, DefineMethod = 27, DefineDomain = 28, DomainTerm = 29, DefineInherit = 30, InheritTerm = 31, ObjectStatement = 32, DefineEnumerate = 33, FlagTerm = 34, FlagField = 35, KW_FLAGS = 36, DefineUnion = 37, UnionTerm = 38, DefineVariant = 39, KW_UNION = 40, DefineTrait = 41, DefineExtends = 42, TraitBlock = 43, TraitTerm = 44, KW_TRAIT = 45, DefineFunction = 46, DefineLambda = 47, FunctionMiddle = 48, TypeHint = 49, TypeReturn = 50, TypeEffect = 51, FunctionParameters = 52, ParameterItem = 53, ParameterPair = 54, ParameterHint = 55, Continuation = 56, KW_FUNCTION = 57, DefineVariable = 58, LetPattern = 59, StandardPattern = 60, BarePattern = 61, BarePatternItem = 62, TuplePattern = 63, PatternItem = 64, TuplePatternItem = 65, WhileStatement = 66, KW_WHILE = 67, ForStatement = 68, IfGuard = 69, ControlFlow = 70, JumpLabel = 71, ExpressionRoot = 72, MatchExpression = 73, SwitchStatement = 74, MatchBlock = 75, MatchTerms = 76, MatchType = 77, MatchCase = 78, CasePattern = 79, MatchWhen = 80, MatchElse = 81, MatchStatement = 82, KW_MATCH = 83, BIND_L = 84, BIND_R = 85, DotMatchCall = 86, MainExpression = 87, MainTerm = 88, MainFactor = 89, GroupFactor = 90, Leading = 91, MainSuffixTerm = 92, MainPrefix = 93, TypePrefix = 94, MainInfix = 95, TypeInfix = 96, MainSuffix = 97, TypeSuffix = 98, InlineExpression = 99, InlineTerm = 100, InlineSuffixTerm = 101, TypeExpression = 102, TypeTerm = 103, TypeFactor = 104, TypeSuffixTerm = 105, TryStatement = 106, NewStatement = 107, NewBlock = 108, NewPair = 109, NewPairKey = 110, DotCall = 111, DotCallItem = 112, DotClosureCall = 113, InlineTupleCall = 114, TupleCall = 115, TupleLiteral = 116, TupleLiteralStrict = 117, TupleTerms = 118, TuplePair = 119, TupleKey = 120, RangeCall = 121, RangeLiteral = 122, RangeLiteralIndex0 = 123, RangeLiteralIndex1 = 124, SubscriptAxis = 125, SubscriptOnly = 126, SubscriptRange = 127, RangeOmit = 128, DefineGeneric = 129, GenericParameter = 130, GenericParameterPair = 131, GenericCall = 132, GenericHide = 133, GenericTerms = 134, GenericPair = 135, AnnotationHead = 136, AnnotationMix = 137, AnnotationTerm = 138, AnnotationTermMix = 139, AttributeList = 140, AttributeCall = 141, AttributeItem = 142, AttributeName = 143, ProceduralCall = 144, ProceduralName = 145, TextLiteral = 146, TextRaw = 147, Text_L = 148, Text_R = 149, Text_X = 150, TEXT_CONTENT1 = 151, TEXT_CONTENT2 = 152, TEXT_CONTENT3 = 153, TEXT_CONTENT4 = 154, TEXT_CONTENT5 = 155, TEXT_CONTENT6 = 156, ModifierCall = 157, ModifierAhead = 158, KEYWORDS_STOP = 159, IDENTIFIER_STOP = 160, Slot = 161, SlotItem = 162, NamepathFree = 163, Namepath = 164, Identifier = 165, IdentifierBare = 166, IdentifierRaw = 167, IdentifierRawText = 168, Special = 169, Number = 170, Sign = 171, Integer = 172, DigitsX = 173, Decimal = 174, DecimalX = 175, PROPORTION = 176, NS_CONCAT = 177, COLON = 178, ARROW1 = 179, COMMA = 180, DOT = 181, OP_SLOT = 182, OFFSET_L = 183, OFFSET_R = 184, PROPORTION2 = 185, OP_IMPORT_ALL = 186, OP_AND_THEN = 187, OP_BIND = 188, KW_CONTROL = 189, KW_NAMESPACE = 190, KW_IMPORT = 191, KW_CONSTRAINT = 192, KW_WHERE = 193, KW_IMPLEMENTS = 194, KW_EXTENDS = 195, KW_INHERITS = 196, KW_FOR = 197, KW_END = 198, KW_LET = 199, KW_NEW = 200, KW_OBJECT = 201, KW_LAMBDA = 202, KW_IF = 203, KW_SWITCH = 204, KW_TRY = 205, KW_TYPE = 206, KW_CASE = 207, KW_WHEN = 208, KW_ELSE = 209, KW_NOT = 210, KW_IN = 211, KW_IS = 212, KW_AS = 213, Shebang = 214, WhiteSpace = 215, SkipSpace = 216, Comment = 217, StringInterpolations = 218, StringInterpolationTerm = 219, EscapeCharacter = 220, EscapeUnicode = 221, EscapeUnicodeCode = 222, StringInterpolationSimple = 223, StringInterpolationText = 224, StringFormatter = 225, StringInterpolationComplex = 226, StringTemplates = 227, StringTemplateTerm = 228, ExpressionTemplate = 229, ForTemplate = 230, ForTemplateBegin = 231, ForTemplateElse = 232, ForTemplateEnd = 233, TEMPLATE_S = 234, TEMPLATE_E = 235, TEMPLATE_L = 236, TEMPLATE_R = 237, TEMPLATE_M = 238, HiddenText = 239,
}

Variants§

§

Program = 0

§

Statement = 1

§

EOS = 2

§

EOS_FREE = 3

§

DefineNamespace = 4

§

OP_NAMESPACE = 5

§

DefineImport = 6

§

ImportBlock = 7

§

ImportTerm = 8

§

ImportAll = 9

§

ImportSpace = 10

§

ImportName = 11

§

ImportAs = 12

§

ImportNameItem = 13

§

DefineConstraint = 14

§

ConstraintParameters = 15

§

ConstraintBlock = 16

§

ConstraintStatement = 17

§

ConstraintImplements = 18

§

WhereBlock = 19

§

WhereBound = 20

§

DefineClass = 21

§

ClassBlock = 22

§

ClassTerm = 23

§

KW_CLASS = 24

§

DefineField = 25

§

ParameterDefault = 26

§

DefineMethod = 27

§

DefineDomain = 28

§

DomainTerm = 29

§

DefineInherit = 30

§

InheritTerm = 31

§

ObjectStatement = 32

§

DefineEnumerate = 33

§

FlagTerm = 34

§

FlagField = 35

§

KW_FLAGS = 36

§

DefineUnion = 37

§

UnionTerm = 38

§

DefineVariant = 39

§

KW_UNION = 40

§

DefineTrait = 41

§

DefineExtends = 42

§

TraitBlock = 43

§

TraitTerm = 44

§

KW_TRAIT = 45

§

DefineFunction = 46

§

DefineLambda = 47

§

FunctionMiddle = 48

§

TypeHint = 49

§

TypeReturn = 50

§

TypeEffect = 51

§

FunctionParameters = 52

§

ParameterItem = 53

§

ParameterPair = 54

§

ParameterHint = 55

§

Continuation = 56

§

KW_FUNCTION = 57

§

DefineVariable = 58

§

LetPattern = 59

§

StandardPattern = 60

§

BarePattern = 61

§

BarePatternItem = 62

§

TuplePattern = 63

§

PatternItem = 64

§

TuplePatternItem = 65

§

WhileStatement = 66

§

KW_WHILE = 67

§

ForStatement = 68

§

IfGuard = 69

§

ControlFlow = 70

§

JumpLabel = 71

§

ExpressionRoot = 72

§

MatchExpression = 73

§

SwitchStatement = 74

§

MatchBlock = 75

§

MatchTerms = 76

§

MatchType = 77

§

MatchCase = 78

§

CasePattern = 79

§

MatchWhen = 80

§

MatchElse = 81

§

MatchStatement = 82

§

KW_MATCH = 83

§

BIND_L = 84

§

BIND_R = 85

§

DotMatchCall = 86

§

MainExpression = 87

§

MainTerm = 88

§

MainFactor = 89

§

GroupFactor = 90

§

Leading = 91

§

MainSuffixTerm = 92

§

MainPrefix = 93

§

TypePrefix = 94

§

MainInfix = 95

§

TypeInfix = 96

§

MainSuffix = 97

§

TypeSuffix = 98

§

InlineExpression = 99

§

InlineTerm = 100

§

InlineSuffixTerm = 101

§

TypeExpression = 102

§

TypeTerm = 103

§

TypeFactor = 104

§

TypeSuffixTerm = 105

§

TryStatement = 106

§

NewStatement = 107

§

NewBlock = 108

§

NewPair = 109

§

NewPairKey = 110

§

DotCall = 111

§

DotCallItem = 112

§

DotClosureCall = 113

§

InlineTupleCall = 114

§

TupleCall = 115

§

TupleLiteral = 116

§

TupleLiteralStrict = 117

§

TupleTerms = 118

§

TuplePair = 119

§

TupleKey = 120

§

RangeCall = 121

§

RangeLiteral = 122

§

RangeLiteralIndex0 = 123

§

RangeLiteralIndex1 = 124

§

SubscriptAxis = 125

§

SubscriptOnly = 126

§

SubscriptRange = 127

§

RangeOmit = 128

§

DefineGeneric = 129

§

GenericParameter = 130

§

GenericParameterPair = 131

§

GenericCall = 132

§

GenericHide = 133

§

GenericTerms = 134

§

GenericPair = 135

§

AnnotationHead = 136

§

AnnotationMix = 137

§

AnnotationTerm = 138

§

AnnotationTermMix = 139

§

AttributeList = 140

§

AttributeCall = 141

§

AttributeItem = 142

§

AttributeName = 143

§

ProceduralCall = 144

§

ProceduralName = 145

§

TextLiteral = 146

§

TextRaw = 147

§

Text_L = 148

§

Text_R = 149

§

Text_X = 150

§

TEXT_CONTENT1 = 151

§

TEXT_CONTENT2 = 152

§

TEXT_CONTENT3 = 153

§

TEXT_CONTENT4 = 154

§

TEXT_CONTENT5 = 155

§

TEXT_CONTENT6 = 156

§

ModifierCall = 157

§

ModifierAhead = 158

§

KEYWORDS_STOP = 159

§

IDENTIFIER_STOP = 160

§

Slot = 161

§

SlotItem = 162

§

NamepathFree = 163

§

Namepath = 164

§

Identifier = 165

§

IdentifierBare = 166

§

IdentifierRaw = 167

§

IdentifierRawText = 168

§

Special = 169

§

Number = 170

§

Sign = 171

§

Integer = 172

§

DigitsX = 173

§

Decimal = 174

§

DecimalX = 175

§

PROPORTION = 176

§

NS_CONCAT = 177

§

COLON = 178

§

ARROW1 = 179

§

COMMA = 180

§

DOT = 181

§

OP_SLOT = 182

§

OFFSET_L = 183

§

OFFSET_R = 184

§

PROPORTION2 = 185

§

OP_IMPORT_ALL = 186

§

OP_AND_THEN = 187

§

OP_BIND = 188

§

KW_CONTROL = 189

§

KW_NAMESPACE = 190

§

KW_IMPORT = 191

§

KW_CONSTRAINT = 192

§

KW_WHERE = 193

§

KW_IMPLEMENTS = 194

§

KW_EXTENDS = 195

§

KW_INHERITS = 196

§

KW_FOR = 197

§

KW_END = 198

§

KW_LET = 199

§

KW_NEW = 200

§

KW_OBJECT = 201

§

KW_LAMBDA = 202

§

KW_IF = 203

§

KW_SWITCH = 204

§

KW_TRY = 205

§

KW_TYPE = 206

§

KW_CASE = 207

§

KW_WHEN = 208

§

KW_ELSE = 209

§

KW_NOT = 210

§

KW_IN = 211

§

KW_IS = 212

§

KW_AS = 213

§

Shebang = 214

§

WhiteSpace = 215

§

SkipSpace = 216

§

Comment = 217

§

StringInterpolations = 218

§

StringInterpolationTerm = 219

§

EscapeCharacter = 220

§

EscapeUnicode = 221

§

EscapeUnicodeCode = 222

§

StringInterpolationSimple = 223

§

StringInterpolationText = 224

§

StringFormatter = 225

§

StringInterpolationComplex = 226

§

StringTemplates = 227

§

StringTemplateTerm = 228

§

ExpressionTemplate = 229

§

ForTemplate = 230

§

ForTemplateBegin = 231

§

ForTemplateElse = 232

§

ForTemplateEnd = 233

§

TEMPLATE_S = 234

§

TEMPLATE_E = 235

§

TEMPLATE_L = 236

§

TEMPLATE_R = 237

§

TEMPLATE_M = 238

§

HiddenText = 239

Label for unnamed text literal

Trait Implementations§

source§

impl Clone for ValkyrieRule

source§

fn clone(&self) -> ValkyrieRule

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ValkyrieRule

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for ValkyrieRule

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for ValkyrieRule

source§

fn cmp(&self, other: &ValkyrieRule) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for ValkyrieRule

source§

fn eq(&self, other: &ValkyrieRule) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for ValkyrieRule

source§

fn partial_cmp(&self, other: &ValkyrieRule) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl YggdrasilRule for ValkyrieRule

source§

fn is_ignore(&self) -> bool

Nodes ignored in ast, such as spaces, carriage returns, comments, etc.
source§

fn get_style(&self) -> &'static str

Get the style name from the rule
source§

impl Copy for ValkyrieRule

source§

impl Eq for ValkyrieRule

source§

impl StructuralPartialEq for ValkyrieRule

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.