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 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.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