ref-fvm
ref-fvm copied to clipboard
Replace `for_each_mut` (internal iteration) with `iter_mut` (external iteration) in the AMT
The iterator will have to yield a smart pointer that:
- Can be dereferenced immutably with no effect.
- Can be dereferenced mutably, marking the value as changed.
- Can be deleted (e.g., by calling some form of
ptr.delete()method). This method should consume the smart pointer (possibly returning the inner value).
This will get rid of the last "internal" iteration feature.
can i work on this?
Absolutely! Take a look at how we currently use it here.
Hey @PhantomOz! Are you still interested in working on this, or should I unassign you?