Enum nt_hive::KeyValueData[][src]

pub enum KeyValueData<'a, B: ByteSlice> {
    Small(&'a [u8]),
    Big(BigDataSlices<'a, B>),
}

Zero-copy representation of raw Key Value data, returned by KeyValue::data.

Variants

Small(&'a [u8])

The data fits into a single cell. Contains the contiguous range of data bytes.

Big(BigDataSlices<'a, B>)

The data is big enough to require more than one cell. Contains an iterator that returns the data byte slice for each cell.

Implementations

impl<'a, B> KeyValueData<'a, B> where
    B: ByteSlice
[src]

pub fn into_vec(self) -> Result<Vec<u8>>[src]

Trait Implementations

impl<'a, B: Clone + ByteSlice> Clone for KeyValueData<'a, B>[src]

Auto Trait Implementations

impl<'a, B> RefUnwindSafe for KeyValueData<'a, B> where
    B: RefUnwindSafe
[src]

impl<'a, B> Send for KeyValueData<'a, B> where
    B: Sync
[src]

impl<'a, B> Sync for KeyValueData<'a, B> where
    B: Sync
[src]

impl<'a, B> Unpin for KeyValueData<'a, B>[src]

impl<'a, B> UnwindSafe for KeyValueData<'a, B> where
    B: RefUnwindSafe
[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> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.