ref-fvm icon indicating copy to clipboard operation
ref-fvm copied to clipboard

Replace `for_each_mut` (internal iteration) with `iter_mut` (external iteration) in the AMT

Open Stebalien opened this issue 1 year ago • 18 comments

The iterator will have to yield a smart pointer that:

  1. Can be dereferenced immutably with no effect.
  2. Can be dereferenced mutably, marking the value as changed.
  3. 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.

Stebalien avatar Feb 20 '24 17:02 Stebalien

can i work on this?

PhantomOz avatar Apr 12 '24 11:04 PhantomOz

Absolutely! Take a look at how we currently use it here.

Stebalien avatar Apr 12 '24 13:04 Stebalien

Hey @PhantomOz! Are you still interested in working on this, or should I unassign you?

rjan90 avatar Aug 21 '24 08:08 rjan90