Module list

Source
Expand description

List operations, mimicking Vec in some ways (but not in others).

Lists may only contain elements whose type has static size.

Like Vec, a list can be created, pushed to, popped from, written to, and asked for its length, among other operations.

Unlike Vec, lists do not track their capacity. Instead, list created at Triton VM’s runtime get access to an entire memory page. Lists spawned in Triton VM’s memory through non-determinism might have access to smaller memory regions. As with all non-determinism, handling them requires additional care.

Modules§

contains
get
higher_order
horner_evaluation_dynamic_length
length
multiset_equality_digests
multiset_equality_u64s
new
pop
push
range
set
set_length
split_off
sum_bfes
sum_xfes
swap_unchecked

Constants§

LIST_METADATA_SIZE
The number of VM words required to store the metadata / bookkeeping data of a list.