test/
test.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use dyn_list::DynList;

fn main() {
    let mut list = DynList::<u8>::new();

    list.push_back(0);
    list.push_back(1);
    list.push_back(2);

    let mut cursor = list.cursor_front_mut();
    cursor.move_next();
    cursor.insert_before(100);

    println!("{list:?}");
}