pub struct Dependencies<'g> { /* private fields */ }Expand description
A package’s direct and transitive dependencies, with one route to each.
Implementations§
Source§impl<'g> Dependencies<'g>
impl<'g> Dependencies<'g>
Sourcepub fn new(root: PackageMetadata<'g>, links: Links) -> Self
pub fn new(root: PackageMetadata<'g>, links: Links) -> Self
Computes the packages root depends on through links.
For Links::Built, a package reachable without a root dev-dependency is reported through such a route,
so a failing guard names the dependency that has to change.
Sourcepub fn route_to(&self, package: &PackageMetadata<'g>) -> Option<Route<'g>>
pub fn route_to(&self, package: &PackageMetadata<'g>) -> Option<Route<'g>>
Returns the dependency route to package, or None for the root or a non-dependency.
Sourcepub fn workspace_members(
&self,
) -> impl Iterator<Item = PackageMetadata<'g>> + '_
pub fn workspace_members( &self, ) -> impl Iterator<Item = PackageMetadata<'g>> + '_
Returns workspace members the root depends on, excluding the root itself.
Auto Trait Implementations§
impl<'g> Freeze for Dependencies<'g>
impl<'g> RefUnwindSafe for Dependencies<'g>
impl<'g> Send for Dependencies<'g>
impl<'g> Sync for Dependencies<'g>
impl<'g> Unpin for Dependencies<'g>
impl<'g> UnsafeUnpin for Dependencies<'g>
impl<'g> UnwindSafe for Dependencies<'g>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more