Struct keccak_hasher::KeccakHasher [−][src]
pub struct KeccakHasher;
Concrete Hasher
impl for the Keccak-256 hash
Trait Implementations
impl Default for KeccakHasher
[src]
impl Default for KeccakHasher
fn default() -> KeccakHasher
[src]
fn default() -> KeccakHasher
Returns the "default value" for a type. Read more
impl Debug for KeccakHasher
[src]
impl Debug for KeccakHasher
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 Clone for KeccakHasher
[src]
impl Clone for KeccakHasher
fn clone(&self) -> KeccakHasher
[src]
fn clone(&self) -> KeccakHasher
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 KeccakHasher
[src]
impl PartialEq for KeccakHasher
fn eq(&self, other: &KeccakHasher) -> bool
[src]
fn eq(&self, other: &KeccakHasher) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Hasher for KeccakHasher
[src]
impl Hasher for KeccakHasher
type Out = H256
The output type of the Hasher
type StdHasher = PlainHasher
What to use to build HashMap
s with this Hasher
const LENGTH: usize
LENGTH: usize = 32
The length in bytes of the Hasher
output
fn hash(x: &[u8]) -> Self::Out
[src]
fn hash(x: &[u8]) -> Self::Out
Compute the hash of the provided slice of bytes returning the Out
type of the Hasher
Auto Trait Implementations
impl Send for KeccakHasher
impl Send for KeccakHasher
impl Sync for KeccakHasher
impl Sync for KeccakHasher