Enum nt_hive::KeyValueData [−][src]
pub enum KeyValueData<'a, B: ByteSlice> {
Small(&'a [u8]),
Big(BigDataSlices<'a, B>),
}
Expand description
Zero-copy representation of raw Key Value data, returned by KeyValue::data
.
Variants
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.
Tuple Fields of Big
0: BigDataSlices<'a, B>
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a, B> RefUnwindSafe for KeyValueData<'a, B> where
B: RefUnwindSafe,
impl<'a, B> Send for KeyValueData<'a, B> where
B: Sync,
impl<'a, B> Sync for KeyValueData<'a, B> where
B: Sync,
impl<'a, B> Unpin for KeyValueData<'a, B>
impl<'a, B> UnwindSafe for KeyValueData<'a, B> where
B: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more