Struct lever::table::hoptable::HOPTable [−][src]
Lever Neighborhood based cache-oblivious concurrent table.
Designed for fast access under heavy contention. Best for related lookups in the known key space. Also best for buffer management.
Implementations
impl<K, V> HOPTable<K, V, RandomState> where
K: PartialEq + Eq + Hash + Clone + Send + Sync,
V: Clone + Send + Sync, [src]
K: PartialEq + Eq + Hash + Clone + Send + Sync,
V: Clone + Send + Sync,
pub fn new() -> Self[src]
pub fn with_capacity(cap: usize) -> Self[src]
impl<K, V, S> HOPTable<K, V, S> where
K: PartialEq + Eq + Hash + Clone + Send + Sync,
V: Clone + Send + Sync,
S: BuildHasher, [src]
K: PartialEq + Eq + Hash + Clone + Send + Sync,
V: Clone + Send + Sync,
S: BuildHasher,
pub fn remove(&self, k: &K) -> Result<Arc<Option<V>>>[src]
pub fn get(&self, k: &K) -> Option<V>[src]
pub fn insert(&self, k: K, v: V) -> Result<Arc<Option<V>>>[src]
Auto Trait Implementations
impl<K, V, S> RefUnwindSafe for HOPTable<K, V, S> where
S: RefUnwindSafe, [src]
S: RefUnwindSafe,
impl<K, V, S> Send for HOPTable<K, V, S> where
S: Send, [src]
S: Send,
impl<K, V, S> Sync for HOPTable<K, V, S> where
S: Sync, [src]
S: Sync,
impl<K, V, S> Unpin for HOPTable<K, V, S> where
S: Unpin, [src]
S: Unpin,
impl<K, V, S> UnwindSafe for HOPTable<K, V, S> where
S: UnwindSafe, [src]
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,