Closed asajeffrey closed 5 years ago
This adds a ab.swap_mut(r) method, where r: &mut Box<T>. This allows us to swap into a box we've borrowed mutably rather than taken ownership of.
ab.swap_mut(r)
r: &mut Box<T>
This adds a
ab.swap_mut(r)
method, wherer: &mut Box<T>
. This allows us to swap into a box we've borrowed mutably rather than taken ownership of.