routemap 0.1.4

Fast in-memory IP prefix routing tables for IPv4 and IPv6. Longest Prefix Match via stride-4 treebitmap, built on ipnetx.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub(crate) const NULL: u32 = u32::MAX;

pub(crate) struct ArenaNode<V> {
    pub(crate) children: [u32; 2],
    pub(crate) value: Option<V>,
}

impl<V> ArenaNode<V> {
    pub(crate) fn new() -> Self {
        Self {
            children: [NULL, NULL],
            value: None,
        }
    }
}