pub struct MastForestRootMap { /* private fields */ }Expand description
A mapping for the new location of the roots of a MastForest after a merge.
It maps the roots (MastNodeIds) of a forest to their new MastNodeId in the merged
forest. See MastForest::merge for more details.
Implementations§
Source§impl MastForestRootMap
impl MastForestRootMap
Sourcepub fn map_root(
&self,
forest_index: usize,
root: &MastNodeId,
) -> Option<MastNodeId>
pub fn map_root( &self, forest_index: usize, root: &MastNodeId, ) -> Option<MastNodeId>
Maps the given root to its new location in the merged forest, if such a mapping exists.
It is guaranteed that every root of the map’s corresponding forest is contained in the map.
Trait Implementations§
Source§impl Clone for MastForestRootMap
impl Clone for MastForestRootMap
Source§fn clone(&self) -> MastForestRootMap
fn clone(&self) -> MastForestRootMap
Returns a copy 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 moreSource§impl Debug for MastForestRootMap
impl Debug for MastForestRootMap
Source§impl PartialEq for MastForestRootMap
impl PartialEq for MastForestRootMap
impl Eq for MastForestRootMap
impl StructuralPartialEq for MastForestRootMap
Auto Trait Implementations§
impl Freeze for MastForestRootMap
impl RefUnwindSafe for MastForestRootMap
impl Send for MastForestRootMap
impl Sync for MastForestRootMap
impl Unpin for MastForestRootMap
impl UnwindSafe for MastForestRootMap
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