[−][src]Struct sparse_merkle_tree::default_store::DefaultStore
Implementations
impl<V> DefaultStore<V>
[src]
pub fn branches_map(&self) -> &Map<H256, BranchNode>
[src]
pub fn leaves_map(&self) -> &Map<H256, LeafNode<V>>
[src]
pub fn clear(&mut self)
[src]
Trait Implementations
impl<V: Clone> Clone for DefaultStore<V>
[src]
fn clone(&self) -> DefaultStore<V>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<V: Debug> Debug for DefaultStore<V>
[src]
impl<V: Default> Default for DefaultStore<V>
[src]
fn default() -> DefaultStore<V>
[src]
impl<V: Clone> Store<V> for DefaultStore<V>
[src]
fn get_branch(&self, node: &H256) -> Result<Option<BranchNode>, Error>
[src]
fn get_leaf(&self, leaf_hash: &H256) -> Result<Option<LeafNode<V>>, Error>
[src]
fn insert_branch(&mut self, node: H256, branch: BranchNode) -> Result<(), Error>
[src]
fn insert_leaf(
&mut self,
leaf_hash: H256,
leaf: LeafNode<V>
) -> Result<(), Error>
[src]
&mut self,
leaf_hash: H256,
leaf: LeafNode<V>
) -> Result<(), Error>
fn remove_branch(&mut self, node: &H256) -> Result<(), Error>
[src]
fn remove_leaf(&mut self, leaf_hash: &H256) -> Result<(), Error>
[src]
Auto Trait Implementations
impl<V> RefUnwindSafe for DefaultStore<V> where
V: RefUnwindSafe,
V: RefUnwindSafe,
impl<V> Send for DefaultStore<V> where
V: Send,
V: Send,
impl<V> Sync for DefaultStore<V> where
V: Sync,
V: Sync,
impl<V> Unpin for DefaultStore<V> where
V: Unpin,
V: Unpin,
impl<V> UnwindSafe for DefaultStore<V> where
V: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,