pub struct DeclDependencies { /* private fields */ }Expand description
Tracks the dependency graph between declarations.
Implementations§
Source§impl DeclDependencies
impl DeclDependencies
Sourcepub fn add(&mut self, dependent: usize, dependency: usize)
pub fn add(&mut self, dependent: usize, dependency: usize)
Adds a dependency: dependent depends on dependency.
Sourcepub fn directly_depends(&self, dependent: usize, dependency: usize) -> bool
pub fn directly_depends(&self, dependent: usize, dependency: usize) -> bool
Returns true if dependent directly depends on dependency.
Sourcepub fn total_edges(&self) -> usize
pub fn total_edges(&self) -> usize
Returns the total number of dependency edges.
Auto Trait Implementations§
impl Freeze for DeclDependencies
impl RefUnwindSafe for DeclDependencies
impl Send for DeclDependencies
impl Sync for DeclDependencies
impl Unpin for DeclDependencies
impl UnsafeUnpin for DeclDependencies
impl UnwindSafe for DeclDependencies
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