Enum multihash::Code [−][src]
Default (cryptographically secure) Multihash implementation.
This is a default set of hashing algorithms. Usually applications would use their own subset of
algorithms. See the Multihash
derive for more information.
Variants
SHA-256 (32-byte hash size)
SHA-512 (64-byte hash size)
SHA3-224 (28-byte hash size)
SHA3-256 (32-byte hash size)
SHA3-384 (48-byte hash size)
SHA3-512 (64-byte hash size)
Keccak-224 (28-byte hash size)
Keccak-256 (32-byte hash size)
Keccak-384 (48-byte hash size)
Keccak-512 (64-byte hash size)
BLAKE2b-256 (32-byte hash size)
BLAKE2b-512 (64-byte hash size)
BLAKE2s-128 (16-byte hash size)
BLAKE2s-256 (32-byte hash size)
BLAKE3-256 (32-byte hash size)
Identity hash (max. 64 bytes)
Trait Implementations
impl Clone for Code
[src]
impl Copy for Code
[src]
impl Debug for Code
[src]
impl Eq for Code
[src]
impl From<&'_ Blake2bDigest<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Code
[src]
fn from(digest: &Blake2bDigest<U64>) -> Self
[src]
impl From<&'_ Blake2bDigest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Code
[src]
fn from(digest: &Blake2bDigest<U32>) -> Self
[src]
impl From<&'_ Blake2sDigest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Code
[src]
fn from(digest: &Blake2sDigest<U32>) -> Self
[src]
impl From<&'_ Blake2sDigest<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>> for Code
[src]
fn from(digest: &Blake2sDigest<U16>) -> Self
[src]
impl From<&'_ Blake3Digest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Code
[src]
fn from(digest: &Blake3Digest<U32>) -> Self
[src]
impl From<&'_ IdentityDigest<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Code
[src]
fn from(digest: &IdentityDigest<U64>) -> Self
[src]
impl From<&'_ KeccakDigest<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Code
[src]
fn from(digest: &KeccakDigest<U64>) -> Self
[src]
impl From<&'_ KeccakDigest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Code
[src]
fn from(digest: &KeccakDigest<U32>) -> Self
[src]
impl From<&'_ KeccakDigest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>> for Code
[src]
fn from(digest: &KeccakDigest<U48>) -> Self
[src]
impl From<&'_ KeccakDigest<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>>> for Code
[src]
fn from(digest: &KeccakDigest<U28>) -> Self
[src]
impl From<&'_ Sha2Digest<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Code
[src]
fn from(digest: &Sha2Digest<U64>) -> Self
[src]
impl From<&'_ Sha2Digest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Code
[src]
fn from(digest: &Sha2Digest<U32>) -> Self
[src]
impl From<&'_ Sha3Digest<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Code
[src]
fn from(digest: &Sha3Digest<U64>) -> Self
[src]
impl From<&'_ Sha3Digest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Code
[src]
fn from(digest: &Sha3Digest<U32>) -> Self
[src]
impl From<&'_ Sha3Digest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>> for Code
[src]
fn from(digest: &Sha3Digest<U48>) -> Self
[src]
impl From<&'_ Sha3Digest<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>>> for Code
[src]
fn from(digest: &Sha3Digest<U28>) -> Self
[src]
impl From<Code> for u64
[src]
impl MultihashDigest for Code
[src]
type AllocSize = U64
The maximum size a hash will allocate.
fn digest(&self, input: &[u8]) -> Multihash
[src]
fn multihash_from_digest<'a, S, D>(digest: &'a D) -> Multihash where
S: Size,
D: Digest<S>,
Self: From<&'a D>,
[src]
S: Size,
D: Digest<S>,
Self: From<&'a D>,
impl PartialEq<Code> for Code
[src]
impl StructuralEq for Code
[src]
impl StructuralPartialEq for Code
[src]
impl TryFrom<u64> for Code
[src]
Auto Trait Implementations
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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> Same<T> for T
[src]
type Output = T
Should always be Self
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, 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>,