Struct inspect_format::Container
source · 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,
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