I\'m trying to navigate a recursive data structure iteratively in order to insert elements at a certain position. To my limited understanding, this means taking a mutable re
It works:
fn back(&mut self) -> &mut Link { let mut anchor = &mut self.root; while anchor.is_some(){ anchor = &mut {anchor}.as_mut().unwrap().next; } anchor }