pub struct VirtualCellWrapper<T, const L: u8 = 0>(/* private fields */);
Expand description
A wrapper type which implements a virtualized cell interface.
Implementations§
Trait Implementations§
Source§impl<T, const L: u8> CellImpl for VirtualCellWrapper<T, L>
impl<T, const L: u8> CellImpl for VirtualCellWrapper<T, L>
Source§fn descriptor(&self) -> CellDescriptor
fn descriptor(&self) -> CellDescriptor
Returns cell descriptor. Read more
Source§fn virtualize(&self) -> &DynCell
fn virtualize(&self) -> &DynCell
Returns this cell as a virtualized cell, so that all hashes
and depths will have an offset.
Source§fn take_first_child(&mut self) -> Option<Cell>
fn take_first_child(&mut self) -> Option<Cell>
Consumes the first child during the deep drop.
Source§fn replace_first_child(&mut self, parent: Cell) -> Result<Cell, Cell>
fn replace_first_child(&mut self, parent: Cell) -> Result<Cell, Cell>
Replaces the first child with the provided parent during the deep drop. Read more
Source§fn take_next_child(&mut self) -> Option<Cell>
fn take_next_child(&mut self) -> Option<Cell>
Consumes the next child (except first) during the deep drop.
Source§fn stats(&self) -> CellTreeStats
fn stats(&self) -> CellTreeStats
Returns the sum of all bits and cells of all elements in the cell tree
(including this cell). Read more
Auto Trait Implementations§
impl<T, const L: u8> Freeze for VirtualCellWrapper<T, L>where
T: Freeze,
impl<T, const L: u8> RefUnwindSafe for VirtualCellWrapper<T, L>where
T: RefUnwindSafe,
impl<T, const L: u8> Send for VirtualCellWrapper<T, L>where
T: Send,
impl<T, const L: u8> Sync for VirtualCellWrapper<T, L>where
T: Sync,
impl<T, const L: u8> Unpin for VirtualCellWrapper<T, L>where
T: Unpin,
impl<T, const L: u8> UnwindSafe for VirtualCellWrapper<T, L>where
T: 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