[−][src]Struct guppy::graph::PackageEdge
Details about a specific dependency from a package to another package.
Usually found within the context of a PackageLink
.
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 PackageEdge
[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 metadata_for_kind(
&self,
kind: DependencyKind
) -> Option<&DependencyMetadata>
[src]
&self,
kind: DependencyKind
) -> Option<&DependencyMetadata>
Returns details about this dependency from the section specified by the given dependency kind.
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 PackageEdge
[src]
fn clone(&self) -> PackageEdge
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PackageEdge
[src]
Auto Trait Implementations
impl RefUnwindSafe for PackageEdge
impl Send for PackageEdge
impl Sync for PackageEdge
impl Unpin for PackageEdge
impl UnwindSafe for PackageEdge
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,