Struct lightning::map::Table[][src]

pub struct Table<K, V, A: Attachment<K, V>, ALLOC: GlobalAlloc + Default, H: Hasher + Default> { /* fields omitted */ }

Implementations

impl<K: Clone + Hash + Eq, V: Clone, A: Attachment<K, V>, ALLOC: GlobalAlloc + Default, H: Hasher + Default> Table<K, V, A, ALLOC, H>[src]

pub fn with_capacity(cap: usize) -> Self[src]

pub fn new() -> Self[src]

pub fn get(
    &self,
    key: &K,
    fkey: usize,
    read_attachment: bool
) -> Option<(usize, Option<V>)>
[src]

pub fn insert(
    &self,
    op: InsertOp,
    key: &K,
    value: Option<V>,
    fkey: usize,
    fvalue: usize
) -> Option<(usize, V)>
[src]

pub fn remove(&self, key: &K, fkey: usize) -> Option<(usize, V)>[src]

pub fn len(&self) -> usize[src]

pub fn map_is_copying(&self) -> bool[src]

Trait Implementations

impl<K, V, A: Attachment<K, V>, ALLOC: GlobalAlloc + Default, H: Hasher + Default> Clone for Table<K, V, A, ALLOC, H>[src]

impl<K, V, A: Attachment<K, V>, ALLOC: GlobalAlloc + Default, H: Hasher + Default> Drop for Table<K, V, A, ALLOC, H>[src]

Auto Trait Implementations

impl<K, V, A, ALLOC, H> RefUnwindSafe for Table<K, V, A, ALLOC, H> where
    A: RefUnwindSafe,
    ALLOC: RefUnwindSafe,
    H: RefUnwindSafe,
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<K, V, A, ALLOC, H> Send for Table<K, V, A, ALLOC, H> where
    H: Send

impl<K, V, A, ALLOC, H> Sync for Table<K, V, A, ALLOC, H> where
    H: Sync

impl<K, V, A, ALLOC, H> Unpin for Table<K, V, A, ALLOC, H> where
    H: Unpin

impl<K, V, A, ALLOC, H> UnwindSafe for Table<K, V, A, ALLOC, H> where
    A: RefUnwindSafe,
    ALLOC: RefUnwindSafe,
    H: UnwindSafe,
    K: RefUnwindSafe,
    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.