pub struct ExtStorageStat<'a> {
pub cells: u32,
pub bits: u32,
/* private fields */
}Fields§
§cells: u32§bits: u32Implementations§
Source§impl<'a> ExtStorageStat<'a>
impl<'a> ExtStorageStat<'a>
pub const MAX_ALLOWED_MERKLE_DEPTH: u8 = 2
pub fn with_limits(limits: StorageStatLimits) -> Self
pub fn compute_for_slice( cs: &CellSlice<'a>, limits: StorageStatLimits, ) -> Option<CellTreeStats>
pub fn stats(&self) -> CellTreeStats
pub fn add_cell(&mut self, cell: &'a DynCell) -> bool
Trait Implementations§
Source§impl<'a> Default for ExtStorageStat<'a>
impl<'a> Default for ExtStorageStat<'a>
Source§fn default() -> ExtStorageStat<'a>
fn default() -> ExtStorageStat<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ExtStorageStat<'a>
impl<'a> RefUnwindSafe for ExtStorageStat<'a>
impl<'a> Send for ExtStorageStat<'a>
impl<'a> Sync for ExtStorageStat<'a>
impl<'a> Unpin for ExtStorageStat<'a>
impl<'a> UnwindSafe for ExtStorageStat<'a>
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