Struct rls_analysis::CrateId
[−]
[src]
pub struct CrateId { pub name: String, pub disambiguator: (u64, u64), }
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
impl Encodable for GlobalCrateId
[src]
fn encode<__S>(&self, __arg_0: &mut __S) -> Result<(), <__S as Encoder>::Error> where
__S: Encoder,
[src]
__S: Encoder,
Serialize a value using an Encoder
.
impl Hash for GlobalCrateId
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for GlobalCrateId
[src]
impl PartialEq<GlobalCrateId> for GlobalCrateId
[src]
fn eq(&self, __arg_0: &GlobalCrateId) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GlobalCrateId) -> bool
[src]
This method tests for !=
.
impl Decodable for GlobalCrateId
[src]
fn decode<__D>(
__arg_0: &mut __D
) -> Result<GlobalCrateId, <__D as Decoder>::Error> where
__D: Decoder,
[src]
__arg_0: &mut __D
) -> Result<GlobalCrateId, <__D as Decoder>::Error> where
__D: Decoder,
Deserialize a value using a Decoder
.
impl Clone for GlobalCrateId
[src]
fn clone(&self) -> GlobalCrateId
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more