|
|
@ -19,7 +19,7 @@ unsafe impl<K: Sync, V: Sync> Sync for LpmTrie<K, V> {}
|
|
|
|
|
|
|
|
|
|
|
|
#[repr(packed)]
|
|
|
|
#[repr(packed)]
|
|
|
|
pub struct Key<K> {
|
|
|
|
pub struct Key<K> {
|
|
|
|
/// Represents the number of bytes matched against.
|
|
|
|
/// Represents the number of bits matched against.
|
|
|
|
pub prefix_len: u32,
|
|
|
|
pub prefix_len: u32,
|
|
|
|
/// Represents arbitrary data stored in the LpmTrie.
|
|
|
|
/// Represents arbitrary data stored in the LpmTrie.
|
|
|
|
pub data: K,
|
|
|
|
pub data: K,
|
|
|
|