Struct rustc::hir::svh::Svh
[−]
[src]
pub struct Svh { /* fields omitted */ }
🔬 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 Svh
pub 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 Svh
impl Clone for Svh
[src]
impl Clone for Svh
fn clone(&self) -> Svh
[src]
fn clone(&self) -> Svh
Returns 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 Svh
fn eq(&self, __arg_0: &Svh) -> bool
[src]
fn eq(&self, __arg_0: &Svh) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Svh) -> bool
[src]
fn ne(&self, __arg_0: &Svh) -> bool
This method tests for !=
.
impl Eq for Svh
[src]
impl Eq for Svh
impl Debug for Svh
[src]
impl Debug for Svh
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for Svh
[src]
impl Hash for Svh
fn 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 Svh
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Encodable for Svh
[src]
impl Encodable for Svh
fn 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 Svh
fn 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 Svh
fn 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?