[−][src]Enum zeros::Hash
Hash functions
This is used to make new Keccak
.
Variants
Implementations
impl Hash
[src]
pub fn name(&self) -> &str
[src]
pub fn new_keccak(&self) -> Keccakⓘ
[src]
pub fn hash<B>(&self, bytes: B) -> Vec<u8> where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
Hashes input bytes
This can be used for small amount of data. For large data, see new_keccak()
.
pub fn hash_as_hex<B>(&self, bytes: B) -> String where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
Hashes input bytes and returns hash as a hexadecimal string, in lower-case
This can be used for small amount of data. For large data, see new_keccak()
.
Trait Implementations
impl Clone for Hash
[src]
impl Debug for Hash
[src]
impl Display for Hash
[src]
impl Eq for Hash
[src]
impl From<&'_ Hash> for Keccak
[src]
impl From<Hash> for Keccak
[src]
impl Hash for Hash
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Hash> for Hash
[src]
pub fn eq(&self, other: &Hash) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Hash
[src]
impl StructuralPartialEq for Hash
[src]
Auto Trait Implementations
impl RefUnwindSafe for Hash
[src]
impl Send for Hash
[src]
impl Sync for Hash
[src]
impl Unpin for Hash
[src]
impl UnwindSafe for Hash
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,