Struct erg_compiler::module::graph::SharedModuleGraph
source · pub struct SharedModuleGraph(_);Implementations§
pub fn new() -> Self
pub fn get_node( &self, path: &Path ) -> Option<MappedRwLockReadGuard<'_, Node<PathBuf, ()>>>
pub fn add_node_if_none(&self, path: &Path)
pub fn inc_ref(&self, referrer: &Path, depends_on: PathBuf)
pub fn ref_inner(&self) -> RwLockReadGuard<'_, ModuleGraph>
pub fn remove(&self, path: &Path)
pub fn sort(&self) -> Result<(), TopoSortError>
pub fn initialize(&self)
Trait Implementations§
source§fn clone(&self) -> SharedModuleGraph
fn clone(&self) -> SharedModuleGraph
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§fn default() -> SharedModuleGraph
fn default() -> SharedModuleGraph
Returns the “default value” for a type. Read more