pub enum KeyValueData<'h, B: SplitByteSlice> {
Small(&'h [u8]),
Big(BigDataSlices<'h, B>),
}
Expand description
Zero-copy representation of raw Key Value data, returned by KeyValue::data
.
Variants§
Small(&'h [u8])
The data fits into a single cell. Contains the contiguous range of data bytes.
Big(BigDataSlices<'h, 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§
Source§impl<B> KeyValueData<'_, B>where
B: SplitByteSlice,
impl<B> KeyValueData<'_, B>where
B: SplitByteSlice,
Trait Implementations§
Source§impl<'h, B: Clone + SplitByteSlice> Clone for KeyValueData<'h, B>
impl<'h, B: Clone + SplitByteSlice> Clone for KeyValueData<'h, B>
Source§fn clone(&self) -> KeyValueData<'h, B>
fn clone(&self) -> KeyValueData<'h, B>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'h, B> Freeze for KeyValueData<'h, B>
impl<'h, B> RefUnwindSafe for KeyValueData<'h, B>where
B: RefUnwindSafe,
impl<'h, B> Send for KeyValueData<'h, B>where
B: Sync,
impl<'h, B> Sync for KeyValueData<'h, B>where
B: Sync,
impl<'h, B> Unpin for KeyValueData<'h, B>
impl<'h, B> UnwindSafe for KeyValueData<'h, B>where
B: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more