Struct pest_meta::parser::ParserRule
source · pub struct ParserRule<'i> {
pub name: String,
pub span: Span<'i>,
pub ty: RuleType,
pub node: ParserNode<'i>,
}Expand description
The pest grammar rule
Fields§
§name: StringThe rule’s name
span: Span<'i>The rule’s span
ty: RuleTypeThe rule’s type
node: ParserNode<'i>The rule’s parser node
Trait Implementations§
source§impl<'i> Clone for ParserRule<'i>
impl<'i> Clone for ParserRule<'i>
source§fn clone(&self) -> ParserRule<'i>
fn clone(&self) -> ParserRule<'i>
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<'i> Debug for ParserRule<'i>
impl<'i> Debug for ParserRule<'i>
source§impl<'i> PartialEq<ParserRule<'i>> for ParserRule<'i>
impl<'i> PartialEq<ParserRule<'i>> for ParserRule<'i>
source§fn eq(&self, other: &ParserRule<'i>) -> bool
fn eq(&self, other: &ParserRule<'i>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.