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<NormalizedPathBuf, ()>>>
pub fn depends_on(&self, path: &Path, target: &Path) -> bool
pub fn children(&self, path: &Path) -> Set<NormalizedPathBuf>
pub fn ancestors(&self, path: &Path) -> Set<NormalizedPathBuf>
pub fn add_node_if_none(&self, path: &Path)
pub fn inc_ref( &self, referrer: &Path, depends_on: PathBuf ) -> Result<(), IncRefError>
pub fn ref_inner(&self) -> RwLockReadGuard<'_, ModuleGraph>
pub fn remove(&self, path: &Path)
pub fn rename_path(&self, old: &Path, new: PathBuf)
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