Struct everscale_types::cell::Cell
source · #[repr(transparent)]pub struct Cell(_);Expand description
Thread-safe cell.
Methods from Deref<Target = DynCell>§
sourcepub fn level_mask(&self) -> LevelMask
pub fn level_mask(&self) -> LevelMask
Computes the level mask from the descriptor bytes.
sourcepub fn reference_count(&self) -> u8
pub fn reference_count(&self) -> u8
Computes the number of child cells from descriptor bytes.
sourcepub fn get_reference_as_slice(&self, index: u8) -> Result<CellSlice<'_>, Error>
pub fn get_reference_as_slice(&self, index: u8) -> Result<CellSlice<'_>, Error>
Tries to load the specified child cell as slice. Returns an error if the loaded cell is absent or is pruned.
sourcepub fn repr_depth(&self) -> u16
pub fn repr_depth(&self) -> u16
Returns a representation depth of the cell.
sourcepub fn references(&self) -> RefsIter<'_> ⓘ
pub fn references(&self) -> RefsIter<'_> ⓘ
Creates an iterator through child nodes.
sourcepub fn debug_root(&self) -> DebugCell<'_>
pub fn debug_root(&self) -> DebugCell<'_>
Returns an object that implements Debug for printing only
the root cell of the cell tree.
sourcepub fn display_root(&self) -> DisplayCellRoot<'_>
pub fn display_root(&self) -> DisplayCellRoot<'_>
Returns an object that implements Display for printing only
the root cell of the cell tree.
sourcepub fn display_tree(&self) -> DisplayCellTree<'_>
pub fn display_tree(&self) -> DisplayCellTree<'_>
Returns an object that implements Display for printing all
cells in the cell tree.
Trait Implementations§
source§impl CellFamily for Cell
impl CellFamily for Cell
source§fn empty_cell() -> Cell
fn empty_cell() -> Cell
Creates an empty cell. Read more
source§fn empty_cell_ref() -> &'static DynCell
fn empty_cell_ref() -> &'static DynCell
Returns a static reference to the empty cell
source§fn all_zeros_ref() -> &'static DynCell
fn all_zeros_ref() -> &'static DynCell
Returns a static reference to the cell with all zeros.
source§fn all_ones_ref() -> &'static DynCell
fn all_ones_ref() -> &'static DynCell
Returns a static reference to the cell with all ones.
source§fn virtualize(cell: Cell) -> Cell
fn virtualize(cell: Cell) -> Cell
Creates a virtualized cell from the specified cell.
source§impl DefaultFinalizer for Cell
impl DefaultFinalizer for Cell
source§impl PartialEq<Cell> for Cell
impl PartialEq<Cell> for Cell
source§impl Store for Cell
impl Store for Cell
source§fn store_into(
&self,
builder: &mut CellBuilder,
_: &mut dyn Finalizer
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, _: &mut dyn Finalizer ) -> Result<(), Error>
Tries to store itself into the cell builder.
source§impl TryAsMut<dyn CellImpl + Sync + Send + 'static> for Cell
impl TryAsMut<dyn CellImpl + Sync + Send + 'static> for Cell
source§fn try_as_mut(&mut self) -> Option<&mut DynCell>
fn try_as_mut(&mut self) -> Option<&mut DynCell>
Tries to convert this type into a mutable reference of the (usually inferred) input type.