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
Corresponding to hash
KeyedHash(&'a [u8; 32])
Corresponding to keyed_hash
DeriveKeyMaterial(&'a ContextKey)
Corresponding to derive_key
The ContextKey
comes from hash_derive_key_context
.
Trait Implementations§
impl<'a> Copy for Mode<'a>
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> 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