Struct pest_meta::parser::ParserNode
source · [−]pub struct ParserNode<'i> {
pub expr: ParserExpr<'i>,
pub span: Span<'i>,
}
Fields
expr: ParserExpr<'i>
span: Span<'i>
Implementations
sourceimpl<'i> ParserNode<'i>
impl<'i> ParserNode<'i>
pub fn filter_map_top_down<F, T>(self, f: F) -> Vec<T> where
F: FnMut(ParserNode<'i>) -> Option<T>,
Trait Implementations
sourceimpl<'i> Clone for ParserNode<'i>
impl<'i> Clone for ParserNode<'i>
sourcefn clone(&self) -> ParserNode<'i>
fn clone(&self) -> ParserNode<'i>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'i> Debug for ParserNode<'i>
impl<'i> Debug for ParserNode<'i>
sourceimpl<'i> PartialEq<ParserNode<'i>> for ParserNode<'i>
impl<'i> PartialEq<ParserNode<'i>> for ParserNode<'i>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ParserNode<'i>) -> bool
fn ne(&self, other: &ParserNode<'i>) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more