pub enum Rule {
Show 71 variants
EOI,
ws,
meta_attr_key,
meta_attr_value,
meta_key_pair,
meta_comment,
meta_comment_line,
comment,
comment_line,
empty_line,
double_quoted_string,
inner,
escape,
unicode,
single_quoted_string,
single_quoted_inner,
string,
line_continuation,
arg_ws,
arg_ws_maybe,
any_content,
any_breakable,
any_eol,
until_whitespace,
identifier_whitespace,
any_equals,
commands,
from,
add,
modify,
remove,
SCRIPTS,
char,
from_said,
oca_object,
remove_oca_object,
attrs_key,
url,
json_key,
json_value,
json_pair,
json_object,
capture_base,
overlay,
overlay_header,
remove_attribute,
overlay_body,
nested_body,
kv_pair,
nested_block,
remove_overlay,
overlay_name,
attr_key,
key_value,
array_type,
array,
key_pair,
base_attr_type,
array_attr_type,
reference_type,
alias,
said,
refs,
refn,
ref_said,
ref_alias,
attr_type,
attr_pair,
attr_pairs,
lang,
file,
}Variants§
EOI
End-of-input
ws
meta_attr_key
meta_attr_value
meta_key_pair
meta_comment
meta_comment_line
comment
comment_line
empty_line
double_quoted_string
Double quoted string
inner
escape
unicode
single_quoted_string
single_quoted_inner
string
line_continuation
arg_ws
arg_ws_maybe
any_content
any_breakable
any_eol
until_whitespace
identifier_whitespace
any_equals
commands
from
add
modify
remove
SCRIPTS
char
from_said
oca_object
remove_oca_object
attrs_key
url
json_key
json_value
json_pair
json_object
capture_base
overlay
overlay_header
remove_attribute
overlay_body
nested_body
kv_pair
nested_block
remove_overlay
overlay_name
attr_key
key_value
array_type
array
key_pair
base_attr_type
array_attr_type
reference_type
alias
said
refs
refn
ref_said
ref_alias
attr_type
Type of the attribute, can be a base type, an array of base types or a reference to another object
attr_pair
Capture base attribute key=type pair
attr_pairs
List of capture base attributes
lang
file
Implementations§
Trait Implementations§
Source§impl Ord for Rule
impl Ord for Rule
Source§impl Parser<Rule> for OCAfileParser
impl Parser<Rule> for OCAfileParser
Source§impl PartialOrd for Rule
impl PartialOrd for Rule
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.