pub struct SliceReader<'a> { /* private fields */ }Expand description
Borrowed slice of a parent BlockRead.
read_at(0, …) reads start of the parent. Reads past length
return Error::ShortRead.
Implementations§
Trait Implementations§
Source§impl<'a> BlockDevice for SliceReader<'a>
Slices are read-only by default — even where the parent is writable,
slicing is almost always paired with a read-only inspection or
dispatch workflow.
impl<'a> BlockDevice for SliceReader<'a>
Slices are read-only by default — even where the parent is writable, slicing is almost always paired with a read-only inspection or dispatch workflow.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SliceReader<'a>
impl<'a> !UnwindSafe for SliceReader<'a>
impl<'a> Freeze for SliceReader<'a>
impl<'a> Send for SliceReader<'a>
impl<'a> Sync for SliceReader<'a>
impl<'a> Unpin for SliceReader<'a>
impl<'a> UnsafeUnpin for SliceReader<'a>
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