doc.rust-lang.org
derive #[derive(Hash)]
Derive macro generating an impl of the trait Hash.
derive_macro
core
Stable since 1.38.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write_usize(&mut self, i: usize)
Writes a single usize into this hasher.
method
core
Stable since 1.3.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write_u8(&mut self, i: u8)
Writes a single u8 into this hasher.
method
core
Stable since 1.3.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write_u64(&mut self, i: u64)
Writes a single u64 into this hasher.
method
core
Stable since 1.3.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write_u32(&mut self, i: u32)
Writes a single u32 into this hasher.
method
core
Stable since 1.3.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write_u16(&mut self, i: u16)
Writes a single u16 into this hasher.
method
core
Stable since 1.3.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write_u128(&mut self, i: u128)
Writes a single u128 into this hasher.
method
core
Stable since 1.26.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write_isize(&mut self, i: isize)
Writes a single isize into this hasher.
method
core
Stable since 1.3.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write_i8(&mut self, i: i8)
Writes a single i8 into this hasher.
method
core
Stable since 1.3.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write_i64(&mut self, i: i64)
Writes a single i64 into this hasher.
method
core
Stable since 1.3.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write_i32(&mut self, i: i32)
Writes a single i32 into this hasher.
method
core
Stable since 1.3.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write_i16(&mut self, i: i16)
Writes a single i16 into this hasher.
method
core
Stable since 1.3.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write_i128(&mut self, i: i128)
Writes a single i128 into this hasher.
method
core
Stable since 1.26.0
Version 1.100.0-nightly
doc.rust-lang.org
fn write(&mut self, bytes: &[u8])
Writes some data into this Hasher.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn finish(&self) -> u64
Returns the hash value for the values written so far.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Hasher
A trait for hashing an arbitrary stream of bytes.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn hash_slice<H>(data: &[Self], state: &mut H)
Feeds a slice of this type into the given Hasher.
associated_function
core
Stable since 1.3.0
Version 1.100.0-nightly
doc.rust-lang.org
fn hash<H>(&self, state: &mut H)
Feeds this value into the given Hasher.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Hash
A hashable type.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn new() -> Self
Creates a new BuildHasherDefault for Hasher H.
associated_function
core
Stable since 1.85.0
Version 1.100.0-nightly