pub struct ModKey {
pub source: ModSource,
pub id: String,
}Expand description
Dedup key for the BFS resolver: (source, project-level identifier).
Version-agnostic — first occurrence wins (BFS order, user requests
before transitively-pulled deps).
Fields§
§source: ModSource§id: StringImplementations§
Trait Implementations§
Source§impl From<&ModRequest> for ModKey
impl From<&ModRequest> for ModKey
Source§fn from(req: &ModRequest) -> Self
fn from(req: &ModRequest) -> Self
Converts to this type from the input type.
impl Eq for ModKey
impl StructuralPartialEq for ModKey
Auto Trait Implementations§
impl Freeze for ModKey
impl RefUnwindSafe for ModKey
impl Send for ModKey
impl Sync for ModKey
impl Unpin for ModKey
impl UnsafeUnpin for ModKey
impl UnwindSafe for ModKey
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.