Expand description
Lists: building, reading, and changing them in place.
FunctionsΒ§
- nf_
list_ π βget - Writes the item at
indexof the borrowed list toout, borrowed from the list. - nf_
list_ π βitem_ mut - Writes to
outthe slot of the item atindexin the list inplace, 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
tyholdinglenitems fromitems, which it takes ownership of. - nf_
list_ π βpush - Appends
item, which it takes ownership of, to the list inplace. - nf_
list_ π βremove - Removes the item at
indexfrom the list inplace. - position π
- The item position
indexnames in a list oflen, orNoneafter recording why thereβs no such item.