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: String
The rule’s name
span: Span<'i>
The rule’s span
ty: RuleType
The 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 more