pub enum BackingBuffer {
    Bytes(Vec<u8>),
    Container(Container),
}Variants§
Trait Implementations§
Source§impl BlockContainer for BackingBuffer
 
impl BlockContainer for BackingBuffer
Source§impl Debug for BackingBuffer
 
impl Debug for BackingBuffer
Source§impl<'a> From<&'a BackingBuffer> for BlockIterator<'a>
 
impl<'a> From<&'a BackingBuffer> for BlockIterator<'a>
Source§fn from(container: &'a BackingBuffer) -> Self
 
fn from(container: &'a BackingBuffer) -> Self
Converts to this type from the input type.
Source§impl ReadBytes for BackingBuffer
 
impl ReadBytes for BackingBuffer
Source§fn get_slice_at(&self, offset: usize, size: usize) -> Option<&[u8]>
 
fn get_slice_at(&self, offset: usize, size: usize) -> Option<&[u8]>
Returns a slice of the given size at the given offset if one exists of the exact size.
Auto Trait Implementations§
impl Freeze for BackingBuffer
impl RefUnwindSafe for BackingBuffer
impl Send for BackingBuffer
impl Sync for BackingBuffer
impl Unpin for BackingBuffer
impl UnwindSafe for BackingBuffer
Blanket Implementations§
Source§impl<T> BlockAccessorExt for Twhere
    T: ReadBytes,
 
impl<T> BlockAccessorExt for Twhere
    T: ReadBytes,
fn maybe_block_at<K>(&self, index: BlockIndex) -> Option<Block<&Self, K>>where
    K: BlockKind,
fn block_at_unchecked<K>(&self, index: BlockIndex) -> Block<&Self, K>where
    K: BlockKind,
fn block_at(&self, index: BlockIndex) -> Block<&Self, Unknown>
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
    D: ResourceDialect,
 
impl<T, D> Encode<Ambiguous1, D> for Twhere
    D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
    D: ResourceDialect,
 
impl<T, D> Encode<Ambiguous2, D> for Twhere
    D: ResourceDialect,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more