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 KeccakHasherfn default() -> KeccakHasher[src] 
fn default() -> KeccakHasherReturns the "default value" for a type. Read more
impl Debug for KeccakHasher[src] 
impl Debug for KeccakHasherfn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for KeccakHasher[src] 
impl Clone for KeccakHasherfn clone(&self) -> KeccakHasher[src] 
fn clone(&self) -> KeccakHasherReturns 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 KeccakHasherfn eq(&self, other: &KeccakHasher) -> bool[src] 
fn eq(&self, other: &KeccakHasher) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src] 
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Hasher for KeccakHasher[src] 
impl Hasher for KeccakHashertype Out = H256
The output type of the Hasher
type StdHasher = PlainHasher
What to use to build HashMaps 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::OutCompute 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 KeccakHasherimpl Sync for KeccakHasher
impl Sync for KeccakHasher