pub struct Child<'a> {
pub parent: &'a Ast,
pub ast: &'a Ast,
pub index: usize,
}Expand description
A temporary type to represent a node returned by one of the searching functions
Fields§
§parent: &'a AstThe parent node
ast: &'a AstAst of the current node
index: usizeIndex of this node in the parent node
Trait Implementations§
impl<'a> Eq for Child<'a>
impl<'a> StructuralPartialEq for Child<'a>
Auto Trait Implementations§
impl<'a> Freeze for Child<'a>
impl<'a> RefUnwindSafe for Child<'a>
impl<'a> !Send for Child<'a>
impl<'a> !Sync for Child<'a>
impl<'a> Unpin for Child<'a>
impl<'a> UnwindSafe for Child<'a>
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