pub struct LinearPrefixMap<K, V>(/* private fields */);Expand description
A very simple prefix map
This prefix map stores prefix in descending order by length. While very simple, it was still
reasonably fast only requires keys with equality. This might be a good choice on machines with
limited memory especially if you’re parsing a very small subset of asciimath. Finding the
longest prefix takes O(num_prefixes).
Implementations§
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for LinearPrefixMap<K, V>
impl<K: Clone, V: Clone> Clone for LinearPrefixMap<K, V>
Source§fn clone(&self) -> LinearPrefixMap<K, V>
fn clone(&self) -> LinearPrefixMap<K, V>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K, V> FromIterator<(K, V)> for LinearPrefixMap<K, V>
impl<K, V> FromIterator<(K, V)> for LinearPrefixMap<K, V>
impl<K: Eq, V: Eq> Eq for LinearPrefixMap<K, V>
impl<K, V> StructuralPartialEq for LinearPrefixMap<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for LinearPrefixMap<K, V>
impl<K, V> RefUnwindSafe for LinearPrefixMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for LinearPrefixMap<K, V>
impl<K, V> Sync for LinearPrefixMap<K, V>
impl<K, V> Unpin for LinearPrefixMap<K, V>
impl<K, V> UnsafeUnpin for LinearPrefixMap<K, V>
impl<K, V> UnwindSafe for LinearPrefixMap<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