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 more