Struct guppy::graph::DependencyReq[][src]

pub struct DependencyReq<'g> { /* fields omitted */ }

Information about a specific kind of dependency (normal, build or dev) from a package to another package.

Usually found within the context of a PackageLink.

Implementations

impl<'g> DependencyReq<'g>[src]

pub fn is_present(&self) -> bool[src]

Returns true if there is at least one Cargo.toml entry corresponding to this requirement.

For example, if this dependency is specified in the [dev-dependencies] section, edge.dev().is_present() will return true.

pub fn status(&self) -> EnabledStatus<'g>[src]

Returns the enabled status of this dependency.

See the documentation for EnabledStatus for more.

pub fn default_features(&self) -> EnabledStatus<'g>[src]

Returns the status of default features on the platform guppy is running on.

See the documentation for EnabledStatus for more.

pub fn features(&self) -> impl Iterator<Item = &'g str>[src]

Returns a list of all features possibly enabled by this dependency. This includes features that are only turned on if the dependency is optional, or features enabled by inactive platforms.

pub fn feature_status(&self, feature: &str) -> EnabledStatus<'g>[src]

Returns the enabled status of this feature.

Note that as of Rust 1.42, the default feature resolver behaves in potentially surprising ways. See the Cargo reference for more.

See the documentation for EnabledStatus for more.

Trait Implementations

impl<'g> Clone for DependencyReq<'g>[src]

impl<'g> Debug for DependencyReq<'g>[src]

Auto Trait Implementations

impl<'g> RefUnwindSafe for DependencyReq<'g>[src]

impl<'g> Send for DependencyReq<'g>[src]

impl<'g> Sync for DependencyReq<'g>[src]

impl<'g> Unpin for DependencyReq<'g>[src]

impl<'g> UnwindSafe for DependencyReq<'g>[src]

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<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync
[src]

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

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

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,