Move mark & compact GC to top-level module.
This commit is contained in:
parent
650b240dc5
commit
112b6865de
@ -13,6 +13,7 @@
|
||||
//! * [mutators](mutators/index.html) is a read-write analogue of `nav`.
|
||||
|
||||
pub(crate) mod base;
|
||||
pub(crate) mod mark_compact;
|
||||
pub mod mutators;
|
||||
pub mod nav;
|
||||
pub mod search;
|
||||
|
@ -14,8 +14,6 @@ use crate::Graph;
|
||||
use symbol_map::indexing::{Indexing, Insertion};
|
||||
use symbol_map::SymbolId;
|
||||
|
||||
pub(crate) mod mark_compact;
|
||||
|
||||
/// Mutable handle to a graph vertex ("node handle").
|
||||
///
|
||||
/// This zipper-like type enables traversal of a graph along the vertex's
|
@ -473,7 +473,7 @@ where
|
||||
|
||||
/// As `retain_reachable_from`, but working over raw `VertexId`s.
|
||||
fn retain_reachable_from_ids(mut self, root_ids: &[VertexId]) {
|
||||
mutators::mark_compact::Collector::retain_reachable(&mut self.graph, root_ids);
|
||||
crate::mark_compact::Collector::retain_reachable(&mut self.graph, root_ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user