This commit is contained in:
aozhiwei 2023-10-07 18:57:49 +08:00
parent 09592ce920
commit 687ccf14fa

View File

@ -74,4 +74,12 @@ impl<T> ListHead<T> {
head.borrow_mut().init();
}
pub fn for_each(&self, cb: fn () -> i64) {
let pos = self.next.clone();
let self_weak = &Rc::downgrade(&self.get_rc_refcell());
while !Weak::ptr_eq(&pos, self_weak) {
}
}
}