Struct lightning::map::ObjectMap[][src]

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

Implementations

impl<V: Clone, ALLOC: GlobalAlloc + Default, H: Hasher + Default> ObjectMap<V, ALLOC, H>[src]

pub fn read(&self, key: usize) -> Option<ObjectMapReadGuard<'_, V, ALLOC, H>>[src]

pub fn write(&self, key: usize) -> Option<ObjectMapWriteGuard<'_, V, ALLOC, H>>[src]

Trait Implementations

impl<V: Clone, ALLOC: Clone + GlobalAlloc + Default, H: Clone + Hasher + Default> Clone for ObjectMap<V, ALLOC, H>[src]

impl<V: Clone, ALLOC: GlobalAlloc + Default, H: Hasher + Default> Map<usize, V> for ObjectMap<V, ALLOC, H>[src]

Auto Trait Implementations

impl<V, ALLOC, H> RefUnwindSafe for ObjectMap<V, ALLOC, H> where
    ALLOC: RefUnwindSafe,
    H: RefUnwindSafe,
    V: RefUnwindSafe

impl<V, ALLOC, H> Send for ObjectMap<V, ALLOC, H> where
    H: Send

impl<V, ALLOC, H> Sync for ObjectMap<V, ALLOC, H> where
    H: Sync

impl<V, ALLOC, H> Unpin for ObjectMap<V, ALLOC, H> where
    H: Unpin

impl<V, ALLOC, H> UnwindSafe for ObjectMap<V, ALLOC, H> where
    ALLOC: RefUnwindSafe,
    H: UnwindSafe,
    V: RefUnwindSafe

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.