[][src]Struct rustc_data_structures::fingerprint::Fingerprint

pub struct Fingerprint(_, _);

Methods

impl Fingerprint[src]

pub const ZERO: Fingerprint[src]

pub fn from_smaller_hash(hash: u64) -> Fingerprint[src]

pub fn to_smaller_hash(&self) -> u64[src]

pub fn as_value(&self) -> (u64, u64)[src]

pub fn combine(self, other: Fingerprint) -> Fingerprint[src]

pub fn combine_commutative(self, other: Fingerprint) -> Fingerprint[src]

pub fn to_hex(&self) -> String[src]

pub fn encode_opaque(&self, encoder: &mut Encoder) -> EncodeResult[src]

pub fn decode_opaque<'a>(
    decoder: &mut Decoder<'a>
) -> Result<Fingerprint, String>
[src]

Trait Implementations

impl StableHasherResult for Fingerprint[src]

impl<CTX> HashStable<CTX> for Fingerprint[src]

impl Clone for Fingerprint[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for Fingerprint[src]

default fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

default fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

default fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Eq for Fingerprint[src]

impl PartialOrd<Fingerprint> for Fingerprint[src]

impl Copy for Fingerprint[src]

impl PartialEq<Fingerprint> for Fingerprint[src]

impl Display for Fingerprint[src]

impl Debug for Fingerprint[src]

impl Hash for Fingerprint[src]

default fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl SpecializedEncoder<Fingerprint> for Encoder[src]

impl<'a> SpecializedDecoder<Fingerprint> for Decoder<'a>[src]

impl UseSpecializedEncodable for Fingerprint[src]

default fn default_encode<E>(&self, &mut E) -> Result<(), <E as Encoder>::Error> where
    E: Encoder
[src]

Defaults to returning an error (see SpecializationError).

impl UseSpecializedDecodable for Fingerprint[src]

default fn default_decode<D>(&mut D) -> Result<Self, <D as Decoder>::Error> where
    D: Decoder
[src]

Defaults to returning an error (see SpecializationError).

Auto Trait Implementations

impl Send for Fingerprint

impl Sync for Fingerprint

Blanket Implementations

impl<T> Erased for T[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Encodable for T where
    T: UseSpecializedEncodable + ?Sized
[src]

impl<T> Decodable for T where
    T: UseSpecializedDecodable
[src]

impl<E> SpecializationError for E[src]