[−][src]Struct guppy::graph::DependencyReq
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]
pub fn clone(&self) -> DependencyReq<'g>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'g> Debug for DependencyReq<'g>
[src]
Auto Trait Implementations
impl<'g> RefUnwindSafe for DependencyReq<'g>
impl<'g> Send for DependencyReq<'g>
impl<'g> Sync for DependencyReq<'g>
impl<'g> Unpin for DependencyReq<'g>
impl<'g> UnwindSafe for DependencyReq<'g>
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Clone + Send + Sync,
[src]
T: 'a + Clone + Send + Sync,
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
[src]
pub fn self_address_mut(&mut self) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
[src]
pub fn self_address_mut(&mut self) -> *mut ()
[src]
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> SafeBorrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub 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>,