Struct pest_meta::parser::ParserNode
source · pub struct ParserNode<'i> {
pub expr: ParserExpr<'i>,
pub span: Span<'i>,
}
Expand description
The pest grammar node
Fields§
§expr: ParserExpr<'i>
The node’s expression
span: Span<'i>
The node’s span
Implementations§
source§impl<'i> ParserNode<'i>
impl<'i> ParserNode<'i>
sourcepub fn filter_map_top_down<F, T>(self, f: F) -> Vec<T>where
F: FnMut(ParserNode<'i>) -> Option<T>,
pub fn filter_map_top_down<F, T>(self, f: F) -> Vec<T>where F: FnMut(ParserNode<'i>) -> Option<T>,
will remove nodes that do not match f
Trait Implementations§
source§impl<'i> Clone for ParserNode<'i>
impl<'i> Clone for ParserNode<'i>
source§fn clone(&self) -> ParserNode<'i>
fn clone(&self) -> ParserNode<'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 ParserNode<'i>
impl<'i> Debug for ParserNode<'i>
source§impl<'i> PartialEq<ParserNode<'i>> for ParserNode<'i>
impl<'i> PartialEq<ParserNode<'i>> for ParserNode<'i>
source§fn eq(&self, other: &ParserNode<'i>) -> bool
fn eq(&self, other: &ParserNode<'i>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'i> Eq for ParserNode<'i>
impl<'i> StructuralEq for ParserNode<'i>
impl<'i> StructuralPartialEq for ParserNode<'i>
Auto Trait Implementations§
impl<'i> RefUnwindSafe for ParserNode<'i>
impl<'i> Send for ParserNode<'i>
impl<'i> Sync for ParserNode<'i>
impl<'i> Unpin for ParserNode<'i>
impl<'i> UnwindSafe for ParserNode<'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