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 block_at(&self, index: BlockIndex) -> Block<&Self>
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