Struct erg_compiler::module::graph::SharedModuleGraph
source · pub struct SharedModuleGraph(_);
Implementations§
pub fn new() -> Self
sourcepub fn get_node(&self, path: &Path) -> Option<&Node<PathBuf, ()>>
pub fn get_node(&self, path: &Path) -> Option<&Node<PathBuf, ()>>
SAFETY: don’t hold this reference before sorting
pub fn add_node_if_none(&self, path: &Path)
pub fn inc_ref(&self, referrer: &Path, depends_on: PathBuf)
sourcepub fn iter(&self) -> impl Iterator<Item = &Node<PathBuf, ()>>
pub fn iter(&self) -> impl Iterator<Item = &Node<PathBuf, ()>>
SAFETY: don’t hold this iterator before sorting
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