Struct fuel_merkle::binary::in_memory::NodesTable
source · 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
§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
.§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.§type OwnedValue = (u64, [u8; 32])
type OwnedValue = (u64, [u8; 32])
The owned type of the
Value
retrieving from the storage.