1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
pub struct Node<T> { is_red: bool, size: usize, pub(crate) v: T, l: ON<T>, r: ON<T>, } type N<T> = Box<Node<T>>; type ON<T> = Option<Box<Node<T>>>; #[cfg(test)] mod tests { #[test] fn test() {} }