Container
struct ContainerImplements Copyable, Movable
- Fields
kind: UInt8arr: List[UInt16]bits: List[UInt64]run_start: List[UInt16]run_len: List[UInt16]
__init__
def __init__(out self) cardinality
def cardinality(self) -> Int contains
def contains(self, v: UInt16) -> Bool min_value
def min_value(self) -> UInt16 max_value
def max_value(self) -> UInt16 to_sorted_list
def to_sorted_list(self) -> List[UInt16] to_bitset_words
def to_bitset_words(self) -> List[UInt64] add
def add(mut self, v: UInt16) remove
def remove(mut self, v: UInt16) run_optimize
def run_optimize(mut self) from_bitset_words
def from_bitset_words(var words: List[UInt64]) -> Self or_
def or_(a, b: Self) -> Self and_
def and_(a, b: Self) -> Self and_not
def and_not(a, b: Self) -> Self xor
def xor(a, b: Self) -> Self serialized_body_size
def serialized_body_size(self) -> Int serialize_body
def serialize_body(self, mut buf: List[UInt8]) deserialize_body
def deserialize_body[origin: Origin[mut=origin.mut], //](kind: UInt8, cardinality: Int, data: Span[UInt8, origin], pos: Int) -> Self