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 for ParserRule<'i>
impl<'i> PartialEq for ParserRule<'i>
impl<'i> Eq for ParserRule<'i>
impl<'i> StructuralPartialEq for ParserRule<'i>
Auto Trait Implementations§
impl<'i> Freeze for ParserRule<'i>
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