pub struct DependencyTree { /* private fields */ }
Expand description
Dependency table.
Acts as a dependency resolution cache as well.
Implementations§
Source§impl DependencyTree
impl DependencyTree
Sourcepub fn contains<P>(&self, path: &P) -> bool
pub fn contains<P>(&self, path: &P) -> bool
Check if the tree contains the dependent specified by its path.
Sourcepub fn get<P>(&self, path: &P) -> Option<&[PathBuf]>
pub fn get<P>(&self, path: &P) -> Option<&[PathBuf]>
Get dependencies by path of the dependent.
Sourcepub fn insert(
&mut self,
dependent: PathBuf,
dependencies: Vec<PathBuf>,
) -> Option<Vec<PathBuf>>
pub fn insert( &mut self, dependent: PathBuf, dependencies: Vec<PathBuf>, ) -> Option<Vec<PathBuf>>
Insert new dependent and its dependencies.
Returns the previous value if any.
Trait Implementations§
Source§impl Debug for DependencyTree
impl Debug for DependencyTree
Source§impl Default for DependencyTree
impl Default for DependencyTree
Source§impl IntoIterator for DependencyTree
impl IntoIterator for DependencyTree
Auto Trait Implementations§
impl Freeze for DependencyTree
impl RefUnwindSafe for DependencyTree
impl Send for DependencyTree
impl Sync for DependencyTree
impl Unpin for DependencyTree
impl UnwindSafe for DependencyTree
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