[][src]Struct cargo_workspace2::models::DepGraph

pub struct DepGraph { /* fields omitted */ }

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.