pub struct NodeRemap { /* private fields */ }Expand description
The old → new NodeId mapping produced by compact.
Indexed by the old NodeId: old_to_new[old.0] is Some(new) if the
node survived compaction, or None if it was dropped as unreachable
debris. Callers use NodeRemap::get to translate roots / NodeHandle
ids they still hold; passes that know a node must have survived use
NodeRemap::expect.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeRemap
impl RefUnwindSafe for NodeRemap
impl Send for NodeRemap
impl Sync for NodeRemap
impl Unpin for NodeRemap
impl UnsafeUnpin for NodeRemap
impl UnwindSafe for NodeRemap
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