[][src]Struct guppy::graph::DependencyEdge

pub struct DependencyEdge { /* fields omitted */ }

Details about a specific dependency from a package to another package.

Usually found within the context of a DependencyLink.

This struct contains information about:

  • whether this dependency was renamed in the context of this crate.
  • if this is a normal, dev or build dependency.

Methods

impl DependencyEdge[src]

pub fn dep_name(&self) -> &str[src]

Returns the name for this dependency edge. This can be affected by a crate rename.

pub fn resolved_name(&self) -> &str[src]

Returns the resolved name for this dependency edge. This may involve renaming the crate and replacing - with _.

pub fn normal(&self) -> Option<&DependencyMetadata>[src]

Returns details about this dependency from the [dependencies] section, if they exist.

pub fn build(&self) -> Option<&DependencyMetadata>[src]

Returns details about this dependency from the [build-dependencies] section, if they exist.

pub fn dev(&self) -> Option<&DependencyMetadata>[src]

Returns details about this dependency from the [dev-dependencies] section, if they exist.

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

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

Trait Implementations

impl Clone for DependencyEdge[src]

impl Debug for DependencyEdge[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for T[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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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