pub struct CrateId {
pub name: String,
pub disambiguator: (u64, u64),
}Expand description
Crate name, along with its disambiguator (128-bit hash) represents a globally unique crate identifier, which should allow for differentiation between different crate targets or versions and should point to the same crate when pulled by different other, dependent crates.
Fields§
§name: String§disambiguator: (u64, u64)Trait Implementations§
Source§impl Clone for GlobalCrateId
impl Clone for GlobalCrateId
Source§fn clone(&self) -> GlobalCrateId
fn clone(&self) -> GlobalCrateId
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 GlobalCrateId
impl Debug for GlobalCrateId
Source§impl<'de> Deserialize<'de> for GlobalCrateId
impl<'de> Deserialize<'de> for GlobalCrateId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GlobalCrateId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GlobalCrateId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for GlobalCrateId
impl Hash for GlobalCrateId
Source§impl PartialEq for GlobalCrateId
impl PartialEq for GlobalCrateId
Source§impl Serialize for GlobalCrateId
impl Serialize for GlobalCrateId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for GlobalCrateId
impl StructuralPartialEq for GlobalCrateId
Auto Trait Implementations§
impl Freeze for GlobalCrateId
impl RefUnwindSafe for GlobalCrateId
impl Send for GlobalCrateId
impl Sync for GlobalCrateId
impl Unpin for GlobalCrateId
impl UnwindSafe for GlobalCrateId
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