[][src]Struct comde::hash_map::CompressedHashMap

pub struct CompressedHashMap<K, V, R, C, D> where
    V: Compress + Decompress,
    C: Compressor,
    D: Decompressor
{ /* fields omitted */ }

Methods

impl<K: Hash + Eq, V, C, D> CompressedHashMap<K, V, RandomState, C, D> where
    V: Compress + Decompress,
    C: Compressor,
    D: Decompressor
[src]

pub fn new() -> CompressedHashMap<K, V, RandomState, C, D>[src]

pub fn insert(&mut self, k: K, v: V) -> Option<V>[src]

pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<V> where
    K: Borrow<Q>,
    Q: Hash + Eq
[src]

pub fn get_raw<Q: ?Sized>(&self, k: &Q) -> Option<&Vec<u8>> where
    K: Borrow<Q>,
    Q: Hash + Eq

Trait Implementations

impl<K: Hash + Eq, V, C, D> Default for CompressedHashMap<K, V, RandomState, C, D> where
    V: Compress + Decompress,
    C: Compressor,
    D: Decompressor
[src]

Auto Trait Implementations

impl<K, V, R, C, D> Send for CompressedHashMap<K, V, R, C, D> where
    C: Send,
    D: Send,
    K: Send,
    R: Send,
    V: Send

impl<K, V, R, C, D> Unpin for CompressedHashMap<K, V, R, C, D> where
    C: Unpin,
    D: Unpin,
    K: Unpin,
    R: Unpin,
    V: Unpin

impl<K, V, R, C, D> Sync for CompressedHashMap<K, V, R, C, D> where
    C: Sync,
    D: Sync,
    K: Sync,
    R: Sync,
    V: Sync

impl<K, V, R, C, D> RefUnwindSafe for CompressedHashMap<K, V, R, C, D> where
    C: RefUnwindSafe,
    D: RefUnwindSafe,
    K: RefUnwindSafe,
    R: RefUnwindSafe,
    V: RefUnwindSafe

impl<K, V, R, C, D> UnwindSafe for CompressedHashMap<K, V, R, C, D> where
    C: UnwindSafe,
    D: UnwindSafe,
    K: UnwindSafe,
    R: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

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

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

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.

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

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

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