pub struct AbsentCell { /* private fields */ }Expand description
A cell that is missing from a tree.
Somewhat similar to pruned cell, but doesn’t affect hashes of parent cells and panics on data access.
Can only be constructed either via AbsentCell::new or
via BOC deserialization.
Implementations§
Source§impl AbsentCell
impl AbsentCell
Sourcepub fn new<T: AsRef<DynCell>>(cell: T) -> Cell
pub fn new<T: AsRef<DynCell>>(cell: T) -> Cell
Creates Self from the provided cell.
Creating AbsentCell from an AbsentCell gives the same cell.
Trait Implementations§
Source§impl CellImpl for AbsentCell
impl CellImpl for AbsentCell
Source§fn descriptor(&self) -> CellDescriptor
fn descriptor(&self) -> CellDescriptor
Returns cell descriptor. Read more
Source§fn reference_repr_hash(&self, _: u8) -> Option<HashBytes>
fn reference_repr_hash(&self, _: u8) -> Option<HashBytes>
Returns a repr hash of the Nth child cell. 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.
Auto Trait Implementations§
impl Freeze for AbsentCell
impl RefUnwindSafe for AbsentCell
impl Send for AbsentCell
impl Sync for AbsentCell
impl Unpin for AbsentCell
impl UnsafeUnpin for AbsentCell
impl UnwindSafe for AbsentCell
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