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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
Hash
: 0 bytesKeyedHash
: 8 bytesDeriveKeyMaterial
: 8 bytes