Struct tetcore_database::MemDb[][src]

pub struct MemDb<H: Clone + Send + Sync + Eq + PartialEq + Default + Hash>(_);

This implements Database as an in-memory hash map. commit is not atomic.

Implementations

impl<H> MemDb<H> where
    H: Clone + Send + Sync + Eq + PartialEq + Default + Hash
[src]

pub fn new() -> Self[src]

Create a new instance

pub fn count(&self, col: ColumnId) -> usize[src]

Count number of values in a column

Trait Implementations

impl<H> Database<H> for MemDb<H> where
    H: Clone + Send + Sync + Eq + PartialEq + Default + Hash
[src]

impl<H: Default + Clone + Send + Sync + Eq + PartialEq + Hash> Default for MemDb<H>[src]

Auto Trait Implementations

impl<H> !RefUnwindSafe for MemDb<H>

impl<H> Send for MemDb<H>

impl<H> Sync for MemDb<H>

impl<H> Unpin for MemDb<H> where
    H: Unpin

impl<H> UnwindSafe for MemDb<H> where
    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, 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.