Enum pliantdb::core::connection::QueryKey[][src]

pub enum QueryKey<K> {
    Matches(K),
    Range(Range<K>),
    Multiple(Vec<K, Global>),
}

Filters a View by key.

Variants

Matches(K)

Matches all entries with the key provided.

Range(Range<K>)

Matches all entires with keys in the range provided.

Multiple(Vec<K, Global>)

Matches all entries that have keys that are included in the set provided.

Implementations

impl<K> QueryKey<K> where
    K: Key
[src]

pub fn serialized(&self) -> Result<QueryKey<Vec<u8, Global>>, Error>[src]

Converts this key to a serialized format using the Key trait.

impl QueryKey<Vec<u8, Global>>[src]

pub fn deserialized<K>(&self) -> Result<QueryKey<K>, Error> where
    K: Key
[src]

Deserializes the bytes into K via the Key trait.

Trait Implementations

impl<K> Clone for QueryKey<K> where
    K: Clone
[src]

impl<K> Debug for QueryKey<K> where
    K: Debug
[src]

impl<'de, K> Deserialize<'de> for QueryKey<K> where
    K: Deserialize<'de>, 
[src]

impl<K> Serialize for QueryKey<K> where
    K: Serialize
[src]

Auto Trait Implementations

impl<K> RefUnwindSafe for QueryKey<K> where
    K: RefUnwindSafe

impl<K> Send for QueryKey<K> where
    K: Send

impl<K> Sync for QueryKey<K> where
    K: Sync

impl<K> Unpin for QueryKey<K> where
    K: Unpin

impl<K> UnwindSafe for QueryKey<K> where
    K: 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> Conv for T

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FmtForward for T

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

impl<T> Instrument for T[src]

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

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>,