pub struct DependencyGraph { /* private fields */ }Expand description
A dependency graph for declarations.
Implementations§
Source§impl DependencyGraph
impl DependencyGraph
pub fn new() -> Self
pub fn add_edge(&mut self, dependent: &str, dependency: &str)
pub fn dependents_of(&self, name: &str) -> Vec<String>
pub fn direct_dependencies(&self, name: &str) -> &[String]
pub fn remove_node(&mut self, name: &str)
pub fn node_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DependencyGraph
impl RefUnwindSafe for DependencyGraph
impl Send for DependencyGraph
impl Sync for DependencyGraph
impl Unpin for DependencyGraph
impl UnsafeUnpin for DependencyGraph
impl UnwindSafe for DependencyGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more