Struct erg_compiler::module::graph::ModuleGraph
source · pub struct ModuleGraph(_);
Implementations§
source§impl ModuleGraph
impl ModuleGraph
pub fn new() -> Self
pub fn get_node(&self, path: &Path) -> Option<&Node<PathBuf, ()>>
pub fn add_node_if_none(&mut self, path: &Path)
pub fn inc_ref(&mut self, referrer: &Path, depends_on: PathBuf)
pub fn iter(&self) -> impl Iterator<Item = &Node<PathBuf, ()>>
pub fn sorted(self) -> Result<Self, TopoSortError>
pub fn sort(&mut self) -> Result<(), TopoSortError>
pub fn initialize(&mut self)
Trait Implementations§
source§impl Clone for ModuleGraph
impl Clone for ModuleGraph
source§fn clone(&self) -> ModuleGraph
fn clone(&self) -> ModuleGraph
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 ModuleGraph
impl Debug for ModuleGraph
source§impl Default for ModuleGraph
impl Default for ModuleGraph
source§fn default() -> ModuleGraph
fn default() -> ModuleGraph
Returns the “default value” for a type. Read more