pub struct Graph {
pub packages: Vec<GraphPackage>,
}Expand description
The root package, and every package its dependencies reach.
Fields§
§packages: Vec<GraphPackage>The root first.
Implementations§
Source§impl Graph
impl Graph
pub fn root(&self) -> &GraphPackage
pub fn package(&self, id: PackageId) -> &GraphPackage
Sourcepub fn reached_through(&self, id: PackageId) -> Option<Span>
pub fn reached_through(&self, id: PackageId) -> Option<Span>
The root’s own entry through which id is first reached, breadth
first, dependencies before dev-dependencies. None for the root.
The language server shows a dependency’s problems there (spec §6).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Graph
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnsafeUnpin for Graph
impl UnwindSafe for Graph
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