pub struct DepRef {
pub name: String,
pub unit_hash: String,
}Fields§
§name: String§unit_hash: StringImplementations§
Source§impl DepRef
impl DepRef
Sourcepub fn memo_hash(&self) -> Option<String>
pub fn memo_hash(&self) -> Option<String>
The dependency’s memo hash — the join key between a dependency edge and the unit that owns it.
Cargo stores a dependency’s fingerprint hash as a u64 in the
fingerprint JSON, and writes the same value into the dependency’s
memo file as hex of its little-endian bytes (cargo’s to_hex).
Example: serde’s serde_core entry 9416646317397223793
resolves to serde_core-…/lib-serde_core = 71a9f323efa5ae82
(the same number, in opposite byte order).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DepRef
impl RefUnwindSafe for DepRef
impl Send for DepRef
impl Sync for DepRef
impl Unpin for DepRef
impl UnsafeUnpin for DepRef
impl UnwindSafe for DepRef
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