[][src]Struct kv_crud_memory::InMemoryStorage

pub struct InMemoryStorage<K, V> where
    K: Hash + Eq,
    V: Entity<K>, 
{ /* fields omitted */ }

In-memory storage manages it's data in simple hash map

Methods

impl<K, V> InMemoryStorage<K, V> where
    K: Hash + Eq,
    V: Entity<K>, 
[src]

pub fn new() -> Self[src]

Creates new empty in-memory storage

Trait Implementations

impl<K: Default, V: Default> Default for InMemoryStorage<K, V> where
    K: Hash + Eq,
    V: Entity<K>, 
[src]

impl<K, V, '_> From<&'_ V> for InMemoryStorage<K, V> where
    K: Hash + Eq,
    V: Entity<K>, 
[src]

impl<K, V, '_> From<&'_ Vec<V>> for InMemoryStorage<K, V> where
    K: Hash + Eq,
    V: Entity<K>, 
[src]

impl<K, V> Create<K, V> for InMemoryStorage<K, V> where
    K: Hash + Eq,
    V: Entity<K>, 
[src]

impl<K, V> Read<K, V> for InMemoryStorage<K, V> where
    K: Hash + Eq + ToString,
    V: Entity<K>, 
[src]

impl<K, V> ReadWithPaginationAndSort<K, V> for InMemoryStorage<K, V> where
    K: Hash + Eq + ToString,
    V: Entity<K> + Ord
[src]

type Error = InMemoryStorageError

impl<K, V> Update<K, V> for InMemoryStorage<K, V> where
    K: Hash + Eq,
    V: Entity<K>, 
[src]

type Error = InMemoryStorageError

impl<K, V> Delete<K, V> for InMemoryStorage<K, V> where
    K: Hash + Eq,
    V: Entity<K>, 
[src]

type Error = InMemoryStorageError

impl<K, V> Crud<K, V> for InMemoryStorage<K, V> where
    K: Hash + Eq + ToString,
    V: Entity<K> + Ord
[src]

Auto Trait Implementations

impl<K, V> Send for InMemoryStorage<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for InMemoryStorage<K, V> where
    K: Sync,
    V: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto 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 for T where
    T: ?Sized
[src]

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

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