pub struct DepTree { /* private fields */ }
Implementations§
Source§impl DepTree
impl DepTree
pub fn new(inner: Rc<BTreeMap<DepId, Vec<DepId>>>) -> Self
pub fn most_dependencies(&self) -> Vec<(DepId, usize)>
pub fn most_dependents(&self) -> Vec<(DepId, usize)>
pub fn least_dependencies(&self) -> Vec<(DepId, usize)>
pub fn least_dependents(&self) -> Vec<(DepId, usize)>
pub fn dependencies_of(&self, unit: DepId) -> Vec<DepId>
pub fn dependents_of(&self, unit: DepId) -> Vec<DepId>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DepTree
impl RefUnwindSafe for DepTree
impl !Send for DepTree
impl !Sync for DepTree
impl Unpin for DepTree
impl UnwindSafe for DepTree
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