pub trait Hashable {
// Required methods
fn hash(&self) -> Digest;
fn leaf_count(&self) -> usize;
fn hashable_pair<'a>(
&'a self,
) -> Option<(impl Hashable + 'a, impl Hashable + 'a)>;
}Required Methods§
fn hash(&self) -> Digest
fn leaf_count(&self) -> usize
fn hashable_pair<'a>( &'a self, ) -> Option<(impl Hashable + 'a, impl Hashable + 'a)>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
Source§impl<B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
impl<B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
Source§impl<C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
impl<C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
Source§impl<D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
impl<D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
Source§impl<E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
impl<E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
Source§impl<F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
impl<F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
Source§impl<G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
impl<G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
Source§impl<H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (H, I, J, K, L, M, N, O, P, Q, R, S, T)
impl<H, I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (H, I, J, K, L, M, N, O, P, Q, R, S, T)
Source§impl<I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (I, J, K, L, M, N, O, P, Q, R, S, T)
impl<I, J, K, L, M, N, O, P, Q, R, S, T> Hashable for (I, J, K, L, M, N, O, P, Q, R, S, T)
Source§impl<J, K, L, M, N, O, P, Q, R, S, T> Hashable for (J, K, L, M, N, O, P, Q, R, S, T)
impl<J, K, L, M, N, O, P, Q, R, S, T> Hashable for (J, K, L, M, N, O, P, Q, R, S, T)
Source§impl<K, L, M, N, O, P, Q, R, S, T> Hashable for (K, L, M, N, O, P, Q, R, S, T)
impl<K, L, M, N, O, P, Q, R, S, T> Hashable for (K, L, M, N, O, P, Q, R, S, T)
Source§impl<L, M, N, O, P, Q, R, S, T> Hashable for (L, M, N, O, P, Q, R, S, T)
impl<L, M, N, O, P, Q, R, S, T> Hashable for (L, M, N, O, P, Q, R, S, T)
Source§impl<M, N, O, P, Q, R, S, T> Hashable for (M, N, O, P, Q, R, S, T)
impl<M, N, O, P, Q, R, S, T> Hashable for (M, N, O, P, Q, R, S, T)
Source§impl<N, O, P, Q, R, S, T> Hashable for (N, O, P, Q, R, S, T)
impl<N, O, P, Q, R, S, T> Hashable for (N, O, P, Q, R, S, T)
Source§impl<O, P, Q, R, S, T> Hashable for (O, P, Q, R, S, T)
impl<O, P, Q, R, S, T> Hashable for (O, P, Q, R, S, T)
Source§impl<P, Q, R, S, T> Hashable for (P, Q, R, S, T)
impl<P, Q, R, S, T> Hashable for (P, Q, R, S, T)
Source§impl<Q, R, S, T> Hashable for (Q, R, S, T)
impl<Q, R, S, T> Hashable for (Q, R, S, T)
Implementors§
impl Hashable for Belt
impl Hashable for Bignum
impl Hashable for CheetahPoint
impl Hashable for Digest
impl Hashable for MerkleProof
impl Hashable for MerkleProvenAxis
impl Hashable for Noun
Available on crate feature
alloc only.impl Hashable for PublicKey
impl Hashable for Signature
Available on crate feature
alloc only.impl<K, V> Hashable for ZMap<K, V>
impl<K, V> Hashable for ZMapEntry<K, V>
impl<T, O> Hashable for HashableList<T>
Available on crate feature
alloc only.impl<T> Hashable for ZSet<T>
impl<T> Hashable for ZSetEntry<T>where
T: Hashable,
impl<T> Hashable for Zeroable<T>where
T: Hashable,
Available on crate feature
alloc only.