[][src]Struct guppy::graph::feature::CrossLink

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

A feature dependency across packages.

This is currently an opaque type -- it will be filled out in the future.

Implementations

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

pub fn from(&self) -> FeatureMetadata<'g>[src]

Returns the feature which depends on the to feature.

pub fn to(&self) -> FeatureMetadata<'g>[src]

Returns the feature which is depended on by the from feature.

pub fn endpoints(&self) -> (FeatureMetadata<'g>, FeatureMetadata<'g>)[src]

Returns the endpoints as a pair of features (from, to).

pub fn normal(&self) -> PlatformStatus<'g>[src]

Returns details about this feature dependency from the [dependencies] section.

pub fn build(&self) -> PlatformStatus<'g>[src]

Returns details about this feature dependency from the [build-dependencies] section.

pub fn dev(&self) -> PlatformStatus<'g>[src]

Returns details about this feature dependency from the [dev-dependencies] section.

pub fn status_for_kind(&self, kind: DependencyKind) -> PlatformStatus<'g>[src]

Returns details about this feature dependency from the section specified by the given dependency kind.

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

Returns true if this edge is dev-only, i.e. code from this edge will not be included in normal builds.

Returns the PackageLink from which this CrossLink was derived.

Trait Implementations

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

impl<'g> Copy for CrossLink<'g>[src]

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

Auto Trait Implementations

impl<'g> RefUnwindSafe for CrossLink<'g>

impl<'g> Send for CrossLink<'g>

impl<'g> Sync for CrossLink<'g>

impl<'g> Unpin for CrossLink<'g>

impl<'g> UnwindSafe for CrossLink<'g>

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>,