brillig_vm

Function vector_element_size

Source
pub(crate) fn vector_element_size(value_types: &[HeapValueType]) -> usize
Expand description

Returns the total number of field elements required to represent the elements in the vector in memory.

Panics if the vector contains nested vectors. Such types are not supported and are rejected by the frontend.