Struct fuel_merkle::binary::MerkleTree
source · pub struct MerkleTree<TableType, StorageType> { /* private fields */ }
Implementations§
source§impl<TableType, StorageType> MerkleTree<TableType, StorageType>
impl<TableType, StorageType> MerkleTree<TableType, StorageType>
pub const fn empty_root() -> &'static Bytes32
pub fn root(&self) -> Bytes32
pub fn leaves_count(&self) -> u64
source§impl<TableType, StorageType, StorageError> MerkleTree<TableType, StorageType>where
TableType: Mappable<Key = u64, Value = Primitive, OwnedValue = Primitive>,
StorageType: StorageInspect<TableType, Error = StorageError>,
impl<TableType, StorageType, StorageError> MerkleTree<TableType, StorageType>where TableType: Mappable<Key = u64, Value = Primitive, OwnedValue = Primitive>, StorageType: StorageInspect<TableType, Error = StorageError>,
Trait Implementations§
Auto Trait Implementations§
impl<TableType, StorageType> RefUnwindSafe for MerkleTree<TableType, StorageType>where StorageType: RefUnwindSafe, TableType: RefUnwindSafe,
impl<TableType, StorageType> Send for MerkleTree<TableType, StorageType>where StorageType: Send, TableType: Send,
impl<TableType, StorageType> Sync for MerkleTree<TableType, StorageType>where StorageType: Sync, TableType: Sync,
impl<TableType, StorageType> Unpin for MerkleTree<TableType, StorageType>where StorageType: Unpin, TableType: Unpin,
impl<TableType, StorageType> UnwindSafe for MerkleTree<TableType, StorageType>where StorageType: UnwindSafe, TableType: UnwindSafe,
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