pub struct CellParts<'a, C: CellFamily + ?Sized> {
    pub bit_len: u16,
    pub descriptor: CellDescriptor,
    pub children_mask: LevelMask,
    pub references: ArrayVec<CellContainer<C>, MAX_REF_COUNT>,
    pub data: &'a [u8],
}
Expand description

Partially assembled cell.

Fields§

§bit_len: u16

Length of this cell’s data in bits.

§descriptor: CellDescriptor

Well-formed cell descriptor.

§children_mask: LevelMask

Bitwise OR of child level masks.

§references: ArrayVec<CellContainer<C>, MAX_REF_COUNT>

Array of child cells.

NOTE: it is guaranteed that the length of the array is consistent with the descriptor.

§data: &'a [u8]

Cell data slice.

Implementations§

Validates cell and computes all hashes.

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.