Struct rustc_data_structures::svh::Svh [−][src]
pub struct Svh { /* fields omitted */ }
Methods
impl Svh
[src]
impl Svh
pub fn new(hash: u64) -> Svh
[src]
pub fn new(hash: u64) -> Svh
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
pub fn to_string(&self) -> String
[src]
pub fn to_string(&self) -> String
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Svh
[src]
impl PartialEq for Svh
fn eq(&self, other: &Svh) -> bool
[src]
fn eq(&self, other: &Svh) -> bool
This 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) -> 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, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &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,
1.3.0
[src]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
impl Decodable for Svh
[src]
impl Decodable for Svh
impl<T> HashStable<T> for Svh
[src]
impl<T> HashStable<T> for Svh
fn hash_stable<W: StableHasherResult>(
&self,
ctx: &mut T,
hasher: &mut StableHasher<W>
)
[src]
fn hash_stable<W: StableHasherResult>(
&self,
ctx: &mut T,
hasher: &mut StableHasher<W>
)