[−][src]Struct cargo_workspace2::models::DepGraph
Dependency graph in a workspace
Implementations
impl DepGraph
[src]
pub fn new() -> Self
[src]
Create a new, empty dependency graph
pub fn add_crate(&mut self, cc: CargoCrate)
[src]
pub fn finalise(&mut self)
[src]
Cache the dependents graph for all crates
pub fn get_crate(&self, id: CrateId) -> &Crate
[src]
Get a crate by ID
pub fn mut_crate(&mut self, id: CrateId) -> &mut Crate
[src]
Get mutable access to a crate by ID
pub fn find_crate(&self, name: &String) -> Option<CrateId>
[src]
Find a crate via it's name
pub fn find_crate_by_path(&self, name: &String) -> Option<CrateId>
[src]
Find a crate by it's path-offset in the workspace
pub fn get_dependents(&self, id: CrateId) -> Vec<CrateId>
[src]
Get a crate's dependents
pub fn get_all(&self) -> Vec<&Crate>
[src]
Auto Trait Implementations
impl RefUnwindSafe for DepGraph
impl Send for DepGraph
impl Sync for DepGraph
impl Unpin for DepGraph
impl UnwindSafe for DepGraph
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,