Enum pest_grammars::json::Rule
source · pub enum Rule {
Show 16 variants
EOI,
json,
object,
pair,
array,
value,
string,
inner,
escape,
unicode,
number,
int,
exp,
bool,
null,
WHITESPACE,
}
Expand description
A parser for JSON file.
And this is a example for JSON parser.
Variants§
EOI
json
object
Matches object, e.g.: { "foo": "bar" }
Foobar
pair
array
value
string
inner
escape
unicode
number
int
exp
bool
null
WHITESPACE
Trait Implementations§
source§impl Ord for Rule
impl Ord for Rule
source§impl Parser<Rule> for JsonParser
impl Parser<Rule> for JsonParser
source§impl PartialEq<Rule> for Rule
impl PartialEq<Rule> for Rule
source§impl PartialOrd<Rule> for Rule
impl PartialOrd<Rule> for Rule
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 more