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 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 ==
.impl<'i> Eq for ParserRule<'i>
impl<'i> StructuralEq for ParserRule<'i>
impl<'i> StructuralPartialEq for ParserRule<'i>
Auto Trait Implementations§
impl<'i> RefUnwindSafe for ParserRule<'i>
impl<'i> Send for ParserRule<'i>
impl<'i> Sync for ParserRule<'i>
impl<'i> Unpin for ParserRule<'i>
impl<'i> UnwindSafe for ParserRule<'i>
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