pub struct NodesTable;
Expand description
The table of the Binary Merkle Tree’s nodes. MerkleTree
works with it as
a binary array, where the storage key of the node is the u64
index and
value is the Node
.
Trait Implementations§
source§impl Clone for NodesTable
impl Clone for NodesTable
source§fn clone(&self) -> NodesTable
fn clone(&self) -> NodesTable
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 Debug for NodesTable
impl Debug for NodesTable
source§impl Mappable for NodesTable
impl Mappable for NodesTable
source§type Key = <NodesTable as Mappable>::OwnedKey
type Key = <NodesTable as Mappable>::OwnedKey
The key type is used during interaction with the storage. In most cases, it is the
same as
Self::OwnedKey
.source§type Value = <NodesTable as Mappable>::OwnedValue
type Value = <NodesTable as Mappable>::OwnedValue
The value type is used while setting the value to the storage. In most cases, it
is the same as
Self::OwnedValue
, but it is without restriction and can be
used for performance optimizations.Auto Trait Implementations§
impl Freeze for NodesTable
impl RefUnwindSafe for NodesTable
impl Send for NodesTable
impl Sync for NodesTable
impl Unpin for NodesTable
impl UnwindSafe for NodesTable
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
)