pub struct Container { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl BlockContainer for Container
impl BlockContainer for Container
Source§impl CopyBytes for Container
impl CopyBytes for Container
fn copy_bytes_at(&self, offset: usize, dst: &mut [u8])
fn copy_bytes(&self, dst: &mut [u8])
Source§impl ReadBytes for Container
impl ReadBytes for Container
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. The offset is inclusive.
Source§impl WriteBytes for Container
impl WriteBytes for Container
Source§fn get_slice_mut_at(&mut self, offset: usize, size: usize) -> Option<&mut [u8]>
fn get_slice_mut_at(&mut self, offset: usize, size: usize) -> Option<&mut [u8]>
Returns a slice of the given size at the given offset if one exists of the exact size. The offset is inclusive.
Source§fn get_slice_mut(&mut self, size: usize) -> Option<&mut [u8]>
fn get_slice_mut(&mut self, size: usize) -> Option<&mut [u8]>
Returns an exclusive reference to a slice of the given size at the beginning of the
container if one exists of the exact size.
fn copy_from_slice_at(&mut self, offset: usize, bytes: &[u8])
fn copy_from_slice(&mut self, bytes: &[u8])
Source§fn get_value_mut<T: ContainerValue>(&mut self, offset: usize) -> Option<&mut T>
fn get_value_mut<T: ContainerValue>(&mut self, offset: usize) -> Option<&mut T>
Returns an exclusive reference to the value at the give offset, if one exists.
fn set_value<T: ContainerValue>(&mut self, offset: usize, value: T)
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
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> BlockAccessorMutExt for Twhere
T: WriteBytes,
impl<T> BlockAccessorMutExt for Twhere
T: WriteBytes,
fn block_at_mut(&mut self, index: BlockIndex) -> Block<&mut 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