pub struct LCTrieMap<K, V>(_);Expand description
A map of Ip prefixes based on a level-compressed trie
Implementations§
source§impl<K: IpPrefix, V> LCTrieMap<K, V>
impl<K: IpPrefix, V> LCTrieMap<K, V>
pub fn len(&self) -> NonZeroUsize
pub fn get<Q>(&self, k: &Q) -> Option<&V>where Q: IpPrefix<Addr = K::Addr>, K: IpPrefixCovering<Q> + PartialEq<Q>,
pub fn get_mut<Q>(&mut self, k: &Q) -> Option<&mut V>where Q: IpPrefix<Addr = K::Addr>, K: IpPrefixCovering<Q> + PartialEq<Q>,
pub fn lookup<Q>(&self, k: &Q) -> (&K, &V)where Q: IpPrefix<Addr = K::Addr>, K: IpPrefixCovering<Q>,
pub fn lookup_mut<Q>(&mut self, k: &Q) -> (&K, &mut V)where Q: IpPrefix<Addr = K::Addr>, K: IpPrefixCovering<Q>,
pub fn info(&self)
pub fn iter(&self) -> impl Iterator<Item = (&K, &V)> + '_
pub fn prefixes(&self) -> LCTrieSet<K>
Trait Implementations§
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for LCTrieMap<K, V>where K: RefUnwindSafe, V: RefUnwindSafe,
impl<K, V> Send for LCTrieMap<K, V>where K: Send, V: Send,
impl<K, V> Sync for LCTrieMap<K, V>where K: Sync, V: Sync,
impl<K, V> Unpin for LCTrieMap<K, V>where K: Unpin, V: Unpin,
impl<K, V> UnwindSafe for LCTrieMap<K, V>where K: UnwindSafe, V: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more