Just like next_unused_spk but also marks it as used with mark_used. It's annoying to do this in two steps outside because of mutable borrow issues.
Should also have one for revealing and reserving at the same time.
Alternatively we could have returned owned Scripts from all spk APIs. I liked returning references because it demonstrates what is actually stored in the index and what is being derived on the fly.
Just like
next_unused_spk
but also marks it as used withmark_used
. It's annoying to do this in two steps outside because of mutable borrow issues.Should also have one for revealing and reserving at the same time.
Alternatively we could have returned owned
Script
s from all spk APIs. I liked returning references because it demonstrates what is actually stored in the index and what is being derived on the fly.