pub struct GemSpec {
pub name: String,
pub version: String,
pub platform: Option<String>,
pub dependencies: Vec<GemDependency>,
pub source_index: usize,
}Expand description
A resolved gem specification from the lockfile.
Fields§
§name: StringGem name (e.g., “rails”).
version: StringResolved version string (e.g., “5.2.8”).
platform: Option<String>Platform suffix, if any (e.g., “x86_64-linux”).
dependencies: Vec<GemDependency>Direct dependencies of this gem.
source_index: usizeWhich source this gem came from.
Trait Implementations§
impl Eq for GemSpec
impl StructuralPartialEq for GemSpec
Auto Trait Implementations§
impl Freeze for GemSpec
impl RefUnwindSafe for GemSpec
impl Send for GemSpec
impl Sync for GemSpec
impl Unpin for GemSpec
impl UnsafeUnpin for GemSpec
impl UnwindSafe for GemSpec
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.