Module cell

Module cell 

Source
Expand description

Cell tree implementation.

Structs§

Cell
Thread-safe cell.
CellBuilder
Builder for constructing cells with densely packed data.
CellDescriptor
Tightly packed info about a cell.
CellParts
Partially assembled cell.
CellRefsBuilder
Builder for constructing cell references array.
CellSlice
A read-only view for a subrange of a cell.
CellSliceRange
Indices of the slice data and refs windows.
CellTreeStats
Cell tree storage stats.
ClonedRefsIter
An iterator through child nodes which produces cloned references.
DebugCell
Helper struct to debug print the root cell.
DisplayCellRoot
Helper struct to print only the root cell in the cell tree.
DisplayCellTree
Helper struct to print all cells in the cell tree.
HashBytes
Type alias for a cell hash.
LevelMask
de Brujn level presence bitset.
LevelMaskIter
de Brujn level presence bitset iterator.
RefsIter
An iterator through child nodes.
Size
A size of a cell.
StaticCell
Static cell which can be used to create cell references in const context.
StorageStat
A helper to track the size of the unique data in multiple cell trees.
UsageTree
Usage tree for a family of cells.
UsageTreeWithSubtrees
Usage tree for a family of cells with subtrees.
VirtualCellWrapper
A wrapper type which implements a virtualized cell interface.
WeakCell
A non-owning reference to a Cell.

Enums§

CellType
Well-formed cell type.
LoadMode
Dictionary insertion mode.
UsageTreeMode
Rule for including cells in the usage tree.

Constants§

MAX_BIT_LEN
Max cell data capacity in bits
MAX_REF_COUNT
Maximum number of child cells

Statics§

EMPTY_CELL_HASH
Hash of an empty (0 bits of data, no refs) ordinary cell.

Traits§

CellContext
Gas accounting and resolcing exotic cells.
CellFamily
Cell implementation family.
CellImpl
Represents the interface of a well-formed cell.
EquivalentRepr
Marker trait which allows casting lazy-loaded data.
ExactSize
A type with a known size in bits and refs.
Load
A data structure that can be deserialized from cells.
Store
A data structure that can be serialized into cells.

Type Aliases§

CellInner
Inner representation of the cell.
CellSliceParts
Owned cell slice parts alias.
DynCell
Dyn trait type alias.

Derive Macros§

Load
Implements Load for the type.
Store
Implements Store for the type.