pub struct MutationSet<const DEPTH: u8, K, V> { /* private fields */ }
Expand description
Represents a group of prospective mutations to a SparseMerkleTree
, created by
SparseMerkleTree::compute_mutations()
, and that can be applied with
SparseMerkleTree::apply_mutations()
.
Implementations§
Trait Implementations§
source§impl<const DEPTH: u8, K: Clone, V: Clone> Clone for MutationSet<DEPTH, K, V>
impl<const DEPTH: u8, K: Clone, V: Clone> Clone for MutationSet<DEPTH, K, V>
source§fn clone(&self) -> MutationSet<DEPTH, K, V>
fn clone(&self) -> MutationSet<DEPTH, K, V>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<const DEPTH: u8, K: Default, V: Default> Default for MutationSet<DEPTH, K, V>
impl<const DEPTH: u8, K: Default, V: Default> Default for MutationSet<DEPTH, K, V>
source§fn default() -> MutationSet<DEPTH, K, V>
fn default() -> MutationSet<DEPTH, K, V>
Returns the “default value” for a type. Read more
impl<const DEPTH: u8, K: Eq, V: Eq> Eq for MutationSet<DEPTH, K, V>
impl<const DEPTH: u8, K, V> StructuralPartialEq for MutationSet<DEPTH, K, V>
Auto Trait Implementations§
impl<const DEPTH: u8, K, V> Freeze for MutationSet<DEPTH, K, V>
impl<const DEPTH: u8, K, V> RefUnwindSafe for MutationSet<DEPTH, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<const DEPTH: u8, K, V> Send for MutationSet<DEPTH, K, V>
impl<const DEPTH: u8, K, V> Sync for MutationSet<DEPTH, K, V>
impl<const DEPTH: u8, K, V> Unpin for MutationSet<DEPTH, K, V>
impl<const DEPTH: u8, K, V> UnwindSafe for MutationSet<DEPTH, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)