Enum dejavu_parser::dejavu::DejavuRule
source · #[repr(u32)]pub enum DejavuRule {
Show 54 variants
Root = 0,
Element = 1,
TextMany = 2,
TextElement = 3,
TEMPLATE_E = 4,
TEXT_SPACE = 5,
TEXT_WORD = 6,
TEMPLATE_L = 7,
TEMPLATE_R = 8,
SpaceControl = 9,
KW_END = 10,
TemplateExport = 11,
ExportItem = 12,
KW_EXPORT = 13,
KW_CLASS = 14,
KW_TRAIT = 15,
KW_TO = 16,
KW_BY = 17,
TemplateIf = 18,
IfBegin = 19,
IfElse = 20,
IfElseIf = 21,
IfEnd = 22,
KW_IF = 23,
KW_ELSE = 24,
TemplateFor = 25,
ForBegin = 26,
ForElse = 27,
ForEnd = 28,
KW_FOR = 29,
KW_IN = 30,
Pattern = 31,
BarePattern = 32,
Expression = 33,
ExpressionRest = 34,
Infix = 35,
Term = 36,
Prefix = 37,
Suffix = 38,
Atomic = 39,
String = 40,
Number = 41,
Digits = 42,
Unit = 43,
BIN = 44,
OCT = 45,
HEX = 46,
NamepathFree = 47,
Namepath = 48,
Identifier = 49,
Boolean = 50,
WhiteSpace = 51,
IgnoreText = 52,
IgnoreRegex = 53,
}
Variants§
Root = 0
Element = 1
TextMany = 2
TextElement = 3
TEMPLATE_E = 4
TEXT_SPACE = 5
TEXT_WORD = 6
TEMPLATE_L = 7
TEMPLATE_R = 8
SpaceControl = 9
KW_END = 10
TemplateExport = 11
ExportItem = 12
KW_EXPORT = 13
KW_CLASS = 14
KW_TRAIT = 15
KW_TO = 16
KW_BY = 17
TemplateIf = 18
IfBegin = 19
IfElse = 20
IfElseIf = 21
IfEnd = 22
KW_IF = 23
KW_ELSE = 24
TemplateFor = 25
ForBegin = 26
ForElse = 27
ForEnd = 28
KW_FOR = 29
KW_IN = 30
Pattern = 31
BarePattern = 32
Expression = 33
ExpressionRest = 34
Infix = 35
Term = 36
Prefix = 37
Suffix = 38
Atomic = 39
String = 40
Number = 41
Digits = 42
Unit = 43
BIN = 44
OCT = 45
HEX = 46
NamepathFree = 47
Namepath = 48
Identifier = 49
Boolean = 50
WhiteSpace = 51
IgnoreText = 52
Label for text literal
IgnoreRegex = 53
Label for regex literal
Trait Implementations§
source§impl Clone for DejavuRule
impl Clone for DejavuRule
source§fn clone(&self) -> DejavuRule
fn clone(&self) -> DejavuRule
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 DejavuRule
impl Debug for DejavuRule
source§impl Hash for DejavuRule
impl Hash for DejavuRule
source§impl Ord for DejavuRule
impl Ord for DejavuRule
source§fn cmp(&self, other: &DejavuRule) -> Ordering
fn cmp(&self, other: &DejavuRule) -> 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 DejavuRule
impl PartialEq for DejavuRule
source§fn eq(&self, other: &DejavuRule) -> bool
fn eq(&self, other: &DejavuRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DejavuRule
impl PartialOrd for DejavuRule
source§fn partial_cmp(&self, other: &DejavuRule) -> Option<Ordering>
fn partial_cmp(&self, other: &DejavuRule) -> 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 DejavuRule
impl YggdrasilRule for DejavuRule
impl Copy for DejavuRule
impl Eq for DejavuRule
impl StructuralEq for DejavuRule
impl StructuralPartialEq for DejavuRule
Auto Trait Implementations§
impl RefUnwindSafe for DejavuRule
impl Send for DejavuRule
impl Sync for DejavuRule
impl Unpin for DejavuRule
impl UnwindSafe for DejavuRule
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