pub struct Dependency<'a> {
pub name: &'a str,
pub extras: Vec<&'a str>,
pub spec: Option<Spec<'a>>,
pub marker: Option<Marker<'a>>,
}Expand description
Python dependency specified by PEP 508
Fields§
§name: &'a strName of the dependency
extras: Vec<&'a str>Extras for the dependency, things that go inside []
spec: Option<Spec<'a>>Version specification or URL
marker: Option<Marker<'a>>Environment markers, conditions that go after ;
Trait Implementations§
Source§impl<'a> Clone for Dependency<'a>
impl<'a> Clone for Dependency<'a>
Source§fn clone(&self) -> Dependency<'a>
fn clone(&self) -> Dependency<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for Dependency<'a>
impl<'a> Debug for Dependency<'a>
impl<'a> Eq for Dependency<'a>
Source§impl<'a> PartialEq for Dependency<'a>
impl<'a> PartialEq for Dependency<'a>
Source§fn eq(&self, other: &Dependency<'a>) -> bool
fn eq(&self, other: &Dependency<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for Dependency<'a>
Auto Trait Implementations§
impl<'a> Freeze for Dependency<'a>
impl<'a> RefUnwindSafe for Dependency<'a>
impl<'a> Send for Dependency<'a>
impl<'a> Sync for Dependency<'a>
impl<'a> Unpin for Dependency<'a>
impl<'a> UnsafeUnpin for Dependency<'a>
impl<'a> UnwindSafe for Dependency<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.