pub struct StaticCell { /* private fields */ }
Expand description

Static cell which can be used to create cell references in const context.

Implementations§

Creates a new plain ordinary cell from parts.

Safety

The following must be true:

  • Data must be well-formed and normalized (contain bit tag if needed and be enough to store bit_len of bits).
  • bit_len must be in range 0..=1023
  • hash must be a correct hash for the current cell.

Trait Implementations§

Returns cell descriptor. Read more
Returns the raw data of this cell.
Returns the data size of this cell in bits.
Returns a reference to the Nth child cell.
Returns the Nth child cell.
Returns this cell as a virtualized cell, so that all hashes and depths will have an offset.
Returns cell hash for the specified level. Read more
Returns cell depth for the specified level.
Returns the sum of all bits and cells of all elements in the cell tree (including this cell).

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.