pub enum Mode<'a> {
Hash,
KeyedHash(&'a [u8; 32]),
DeriveKeyMaterial(&'a ContextKey),
}Expand description
The mode argument to merge_subtrees_root and friends
See the module level examples.
Variants§
Hash
The default hash mode. Subtrees must be hashed with Hasher::new.
KeyedHash(&'a [u8; 32])
The keyed_hash mode. Subtrees must be hashed with
Hasher::new_keyed.
DeriveKeyMaterial(&'a ContextKey)
The derive_key mode. Subtrees must be hashed with either
Hasher::new_derive_key or Hasher::new_from_context_key. The ContextKey comes
from hash_derive_key_context.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Mode<'a>
impl<'a> RefUnwindSafe for Mode<'a>
impl<'a> Send for Mode<'a>
impl<'a> Sync for Mode<'a>
impl<'a> Unpin for Mode<'a>
impl<'a> UnsafeUnpin for Mode<'a>
impl<'a> UnwindSafe for Mode<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more