Struct lightning::map::WordMap[][src]

pub struct WordMap<ALLOC: GlobalAlloc + Default = System, H: Hasher + Default = DefaultHasher> { /* fields omitted */ }

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]

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]

Auto Trait Implementations

impl<ALLOC, H> RefUnwindSafe for WordMap<ALLOC, H> where
    ALLOC: RefUnwindSafe,
    H: RefUnwindSafe

impl<ALLOC, H> Send for WordMap<ALLOC, H> where
    H: Send

impl<ALLOC, H> Sync for WordMap<ALLOC, H> where
    H: Sync

impl<ALLOC, H> Unpin for WordMap<ALLOC, H> where
    H: Unpin

impl<ALLOC, H> UnwindSafe for WordMap<ALLOC, H> where
    ALLOC: RefUnwindSafe,
    H: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.