data-structures 0.1.0

A simple data structures crate in rust, WIP
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub type Next<T> = Box<Option<Node<T>>>;

#[derive(Debug)]
pub struct Node<T> {
    pub data: T,
    pub next: Next<T>,
}

impl<T> Node<T> {
    pub fn new(data: T) -> Self {
        Node {
            data,
            next: Box::new(None),
        }
    }
}