Skip to main content

Module lists

Module lists 

Source
Expand description

Lists: building, reading, and changing them in place.

FunctionsΒ§

nf_list_get πŸ”’ ⚠
Writes the item at index of the borrowed list to out, borrowed from the list.
nf_list_item_mut πŸ”’ ⚠
Writes to out the slot of the item at index in the list in place, which becomes its only owner’s so the item can be changed. The slot is valid until the list next changes.
nf_list_len πŸ”’
How many items the borrowed list holds.
nf_list_new πŸ”’ ⚠
A list of type ty holding len items from items, which it takes ownership of.
nf_list_push πŸ”’ ⚠
Appends item, which it takes ownership of, to the list in place.
nf_list_remove πŸ”’ ⚠
Removes the item at index from the list in place.
position πŸ”’
The item position index names in a list of len, or None after recording why there’s no such item.