pub struct DetachedNode<T> {
pub parent_idx: NodeIndex,
pub node_idx: NodeIndex,
pub node_value: T,
}
Expand description
A detached node from a scene graph.
Fields§
§parent_idx: NodeIndex
The original parent idx, which may or may not still be in the scene graph itself.
node_idx: NodeIndex
Its old node_index.
node_value: T
The value of the node.
Trait Implementations§
Source§impl<T: Clone> Clone for DetachedNode<T>
impl<T: Clone> Clone for DetachedNode<T>
Source§fn clone(&self) -> DetachedNode<T>
fn clone(&self) -> DetachedNode<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for DetachedNode<T>
impl<T> Debug for DetachedNode<T>
Source§impl<T: Hash> Hash for DetachedNode<T>
impl<T: Hash> Hash for DetachedNode<T>
Source§impl<T: Ord> Ord for DetachedNode<T>
impl<T: Ord> Ord for DetachedNode<T>
Source§fn cmp(&self, other: &DetachedNode<T>) -> Ordering
fn cmp(&self, other: &DetachedNode<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for DetachedNode<T>
impl<T: PartialEq> PartialEq for DetachedNode<T>
Source§impl<T: PartialOrd> PartialOrd for DetachedNode<T>
impl<T: PartialOrd> PartialOrd for DetachedNode<T>
impl<T: Copy> Copy for DetachedNode<T>
impl<T: Eq> Eq for DetachedNode<T>
impl<T> StructuralPartialEq for DetachedNode<T>
Auto Trait Implementations§
impl<T> Freeze for DetachedNode<T>where
T: Freeze,
impl<T> RefUnwindSafe for DetachedNode<T>where
T: RefUnwindSafe,
impl<T> Send for DetachedNode<T>where
T: Send,
impl<T> Sync for DetachedNode<T>where
T: Sync,
impl<T> Unpin for DetachedNode<T>where
T: Unpin,
impl<T> UnwindSafe for DetachedNode<T>where
T: UnwindSafe,
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