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>
pub fn filter_map_top_down<F, T>(self, f: F) -> Vec<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 for ParserNode<'i>
impl<'i> PartialEq for ParserNode<'i>
impl<'i> Eq for ParserNode<'i>
impl<'i> StructuralPartialEq for ParserNode<'i>
Auto Trait Implementations§
impl<'i> Freeze for ParserNode<'i>
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