pub struct GemDependency {
pub name: String,
pub requirement: Option<String>,
}Expand description
A dependency of a resolved gem (sub-dependency with version constraints).
Fields§
§name: StringDependency gem name.
requirement: Option<String>Version constraint string (e.g., “~> 2.0, >= 2.0.8”), or None if unconstrained.
Trait Implementations§
Source§impl Clone for GemDependency
impl Clone for GemDependency
Source§fn clone(&self) -> GemDependency
fn clone(&self) -> GemDependency
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GemDependency
impl Debug for GemDependency
Source§impl PartialEq for GemDependency
impl PartialEq for GemDependency
impl Eq for GemDependency
impl StructuralPartialEq for GemDependency
Auto Trait Implementations§
impl Freeze for GemDependency
impl RefUnwindSafe for GemDependency
impl Send for GemDependency
impl Sync for GemDependency
impl Unpin for GemDependency
impl UnsafeUnpin for GemDependency
impl UnwindSafe for GemDependency
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.