Struct fuel_merkle::sparse::in_memory::NodesTable
source · pub struct NodesTable;
Expand description
The table of the Sparse Merkle tree’s nodes. MerkleTree
works with it as a sparse merkle
tree, where the storage key is Bytes32
and the value is the Buffer
(raw presentation of the Node
).
Trait Implementations§
source§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.Auto Trait Implementations§
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