pub struct StorageUsed {
pub cells: VarUint56,
pub bits: VarUint56,
}Expand description
Amount of unique cells and bits for shard states.
Fields§
§cells: VarUint56Amount of unique cells.
bits: VarUint56The total number of bits in unique cells.
Implementations§
Source§impl StorageUsed
impl StorageUsed
Trait Implementations§
Source§impl Clone for StorageUsed
impl Clone for StorageUsed
Source§fn clone(&self) -> StorageUsed
fn clone(&self) -> StorageUsed
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorageUsed
impl Debug for StorageUsed
Source§impl Default for StorageUsed
impl Default for StorageUsed
Source§fn default() -> StorageUsed
fn default() -> StorageUsed
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorageUsed
impl<'de> Deserialize<'de> for StorageUsed
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'tlb> Load<'tlb> for StorageUsed
impl<'tlb> Load<'tlb> for StorageUsed
Source§impl PartialEq for StorageUsed
impl PartialEq for StorageUsed
Source§impl Serialize for StorageUsed
impl Serialize for StorageUsed
Source§impl Store for StorageUsed
impl Store for StorageUsed
Source§fn store_into(
&self,
__builder: &mut CellBuilder,
__context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, __builder: &mut CellBuilder, __context: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Eq for StorageUsed
impl StructuralPartialEq for StorageUsed
Auto Trait Implementations§
impl Freeze for StorageUsed
impl RefUnwindSafe for StorageUsed
impl Send for StorageUsed
impl Sync for StorageUsed
impl Unpin for StorageUsed
impl UnwindSafe for StorageUsed
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.