Struct lightning::map::WordMap [−][src]
Implementations
impl<ALLOC: GlobalAlloc + Default, H: Hasher + Default> WordMap<ALLOC, H>
[src]
pub fn get_from_mutex(&self, key: &usize) -> Option<usize>
[src]
impl<ALLOC: GlobalAlloc + Default, H: Hasher + Default> WordMap<ALLOC, H>
[src]
pub fn lock(&self, key: usize) -> Option<WordMutexGuard<'_, ALLOC, H>>
[src]
pub fn try_insert_locked(
&self,
key: usize
) -> Option<WordMutexGuard<'_, ALLOC, H>>
[src]
&self,
key: usize
) -> Option<WordMutexGuard<'_, ALLOC, H>>
Trait Implementations
impl<ALLOC: Clone + GlobalAlloc + Default, H: Clone + Hasher + Default> Clone for WordMap<ALLOC, H>
[src]
impl<ALLOC: GlobalAlloc + Default, H: Hasher + Default> Map<usize, usize> for WordMap<ALLOC, H>
[src]
fn with_capacity(cap: usize) -> Self
[src]
fn get(&self, key: &usize) -> Option<usize>
[src]
fn insert(&self, key: &usize, value: usize) -> Option<usize>
[src]
fn try_insert(&self, key: &usize, value: usize) -> Option<usize>
[src]
fn remove(&self, key: &usize) -> Option<usize>
[src]
fn entries(&self) -> Vec<(usize, usize)>
[src]
fn contains_key(&self, key: &usize) -> bool
[src]
fn len(&self) -> usize
[src]
fn get_or_insert<F: Fn() -> V>(&self, key: &K, func: F) -> V
[src]
Auto Trait Implementations
impl<ALLOC, H> RefUnwindSafe for WordMap<ALLOC, H> where
ALLOC: RefUnwindSafe,
H: RefUnwindSafe,
ALLOC: RefUnwindSafe,
H: RefUnwindSafe,
impl<ALLOC, H> Send for WordMap<ALLOC, H> where
H: Send,
H: Send,
impl<ALLOC, H> Sync for WordMap<ALLOC, H> where
H: Sync,
H: Sync,
impl<ALLOC, H> Unpin for WordMap<ALLOC, H> where
H: Unpin,
H: Unpin,
impl<ALLOC, H> UnwindSafe for WordMap<ALLOC, H> where
ALLOC: RefUnwindSafe,
H: UnwindSafe,
ALLOC: RefUnwindSafe,
H: 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> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,