Skip to main content

collapse

Standalone Functions

collapse

collapse(input);

/ collapsed: [3, 1]

Parameters

NameType
input[Option<T>; N]

verify_collapse_hints

verify_collapse_hints(input, collapsed, N>, collapsed_to_input_index_mapping, N>, );

Parameters

NameType
input[Option<T>; N]
collapsedBoundedVec<T
N>
collapsed_to_input_index_mappingBoundedVec<u32
N>

get_collapse_hints

get_collapse_hints(input, );

Parameters

NameType
input[Option<T>; N]

collapse_empty_array

collapse_empty_array();

Takes no parameters.

collapse_non_sparse_array

collapse_non_sparse_array();

Takes no parameters.

collapse_sparse_array

collapse_sparse_array();

Takes no parameters.

collapse_front_padding

collapse_front_padding();

Takes no parameters.

collapse_back_padding

collapse_back_padding();

Takes no parameters.

verify_collapse_hints_good_hints

verify_collapse_hints_good_hints();

Takes no parameters.

verify_collapse_hints_wrong_length

verify_collapse_hints_wrong_length();

Takes no parameters.

verify_collapse_hints_hint_length_mismatch

verify_collapse_hints_hint_length_mismatch();

Takes no parameters.

verify_collapse_hints_out_of_bounds_index_hint

verify_collapse_hints_out_of_bounds_index_hint();

Takes no parameters.

verify_collapse_hints_hint_to_none

verify_collapse_hints_hint_to_none();

Takes no parameters.

verify_collapse_hints_wrong_vec_content

verify_collapse_hints_wrong_vec_content();

Takes no parameters.

verify_collapse_hints_wrong_vec_order

verify_collapse_hints_wrong_vec_order();

Takes no parameters.

verify_collapse_hints_dirty_storage

verify_collapse_hints_dirty_storage();

Takes no parameters.