[][src]Struct spartan_lib::core::db::VecDatabase

pub struct VecDatabase<M> { /* fields omitted */ }

Vec-based database

Internally contains only Vec of messages, so lookups based on query may be slower, than with TreeDatabase

Currently used only for testing purposes due to simple implementation details

Trait Implementations

impl<M> Database<M> for VecDatabase<M>[src]

type PositionKey = usize

impl<M: Debug> Debug for VecDatabase<M>[src]

impl<M> Default for VecDatabase<M>[src]

impl<'de, M> Deserialize<'de> for VecDatabase<M> where
    M: Deserialize<'de>, 
[src]

impl<M> Serialize for VecDatabase<M> where
    M: Serialize
[src]

impl<M> StatusAwareDatabase<M> for VecDatabase<M> where
    M: Identifiable
[src]

type RequeueKey = <M as Identifiable>::Id

Auto Trait Implementations

impl<M> RefUnwindSafe for VecDatabase<M> where
    M: RefUnwindSafe
[src]

impl<M> Send for VecDatabase<M> where
    M: Send
[src]

impl<M> Sync for VecDatabase<M> where
    M: Sync
[src]

impl<M> Unpin for VecDatabase<M> where
    M: Unpin
[src]

impl<M> UnwindSafe for VecDatabase<M> where
    M: UnwindSafe
[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,