1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#![allow(warnings)] // Work in progress... use stack_array::Array; struct BtreeMap<K , V, const N: usize> { len: usize, nodes: Array<Node<K, V>, N>, } struct Node<K, V> { key: K, value: V, left: Option<usize>, right: Option<usize>, }