Seq
struct Seq[T: Copyable & Deinitable]A list of T that tasks can take and return.
Implements Codec, Copyable, Movable, Sized
- Fields
items: List[T]
__init__
def __init__(out self) def __init__(out self, var items: List[T]) __getitem__
def __getitem__(self, i: Int) -> T A copy of element i. Use items to borrow instead.
append
def append(mut self, var value: T) __len__
def __len__(self) -> Int encode
def encode(self, mut out: List[UInt8]) decode
def decode(buf: Span[UInt8], mut pos: Int) -> Self