Struct rustc::hir::svh::Svh [−][src]
pub struct Svh {
hash: u64,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields
hash: u64
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Methods
impl Svh[src]
impl Svhpub fn new(hash: u64) -> Svh[src]
pub fn new(hash: u64) -> Svh🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Create a new Svh given the hash. If you actually want to
compute the SVH from some HIR, you want the calculate_svh
function found in librustc_incremental.
pub fn as_u64(&self) -> u64[src]
pub fn as_u64(&self) -> u64🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn to_string(&self) -> String[src]
pub fn to_string(&self) -> String🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl Copy for Svh[src]
impl Copy for Svhimpl Clone for Svh[src]
impl Clone for Svhfn clone(&self) -> Svh[src]
fn clone(&self) -> SvhReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for Svh[src]
impl PartialEq for Svhfn eq(&self, other: &Svh) -> bool[src]
fn eq(&self, other: &Svh) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Svh) -> bool[src]
fn ne(&self, other: &Svh) -> boolThis method tests for !=.
impl Eq for Svh[src]
impl Eq for Svhfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl Debug for Svh[src]
impl Debug for Svhfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for Svh[src]
impl Hash for Svhfn hash<H>(&self, state: &mut H) where
H: Hasher, [src]
fn hash<H>(&self, state: &mut H) where
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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Display for Svh[src]
impl Display for Svhfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Encodable for Svh[src]
impl Encodable for Svhfn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>[src]
fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Decodable for Svh[src]
impl Decodable for Svhfn decode<D: Decoder>(d: &mut D) -> Result<Svh, D::Error>[src]
fn decode<D: Decoder>(d: &mut D) -> Result<Svh, D::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for Svh[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for Svhfn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?