1 2 3 4 5 6 7 8 9 10 11 12
use trait_obj_list::DynList; fn main() { let mut list = DynList::<dyn std::any::Any>::new(); list.extend(0..10); let mut cursor = list.cursor().unwrap(); let i = cursor.current(); cursor.move_next(); let _ = *i; }