pub struct ParentInfo {
pub parent_id: Option<NodeId>,
pub arg_key: String,
pub index: Option<usize>,
}Expand description
Information about a node’s parent relationship
Fields§
§parent_id: Option<NodeId>The NodeId of the parent (None for root)
arg_key: StringWhich argument/field in the parent this node occupies
index: Option<usize>Index if the node is part of a list (e.g., expressions in SELECT)
Trait Implementations§
Source§impl Clone for ParentInfo
impl Clone for ParentInfo
Source§fn clone(&self) -> ParentInfo
fn clone(&self) -> ParentInfo
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ParentInfo
impl RefUnwindSafe for ParentInfo
impl Send for ParentInfo
impl Sync for ParentInfo
impl Unpin for ParentInfo
impl UnwindSafe for ParentInfo
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