Struct guestmem::ranges::PagedRangesReader
source · pub struct PagedRangesReader<'a, T> { /* private fields */ }
Expand description
A MemoryRead
implementation for PagedRanges
.
Implementations§
source§impl<'a, T> PagedRangesReader<'a, T>
impl<'a, T> PagedRangesReader<'a, T>
sourcepub fn into_inner(self) -> PagedRanges<'a, T>
pub fn into_inner(self) -> PagedRanges<'a, T>
Returns the inner ranges.
Trait Implementations§
source§impl<'a, T: Clone> Clone for PagedRangesReader<'a, T>
impl<'a, T: Clone> Clone for PagedRangesReader<'a, T>
source§fn clone(&self) -> PagedRangesReader<'a, T>
fn clone(&self) -> PagedRangesReader<'a, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, T: Debug> Debug for PagedRangesReader<'a, T>
impl<'a, T: Debug> Debug for PagedRangesReader<'a, T>
source§impl<'a, T: Iterator<Item = PagedRange<'a>>> MemoryRead for PagedRangesReader<'a, T>
impl<'a, T: Iterator<Item = PagedRange<'a>>> MemoryRead for PagedRangesReader<'a, T>
fn read(&mut self, data: &mut [u8]) -> Result<&mut Self, AccessError>
fn skip(&mut self, len: usize) -> Result<&mut Self, AccessError>
fn len(&self) -> usize
fn read_plain<T: AsBytes + FromBytes>(&mut self) -> Result<T, AccessError>
fn read_n<T: AsBytes + FromBytes + Copy>( &mut self, len: usize, ) -> Result<Vec<T>, AccessError>
fn read_all(&mut self) -> Result<Vec<u8>, AccessError>
fn limit(self, len: usize) -> Limit<Self>where
Self: Sized,
Auto Trait Implementations§
impl<'a, T> Freeze for PagedRangesReader<'a, T>where
T: Freeze,
impl<'a, T> !RefUnwindSafe for PagedRangesReader<'a, T>
impl<'a, T> Send for PagedRangesReader<'a, T>where
T: Send,
impl<'a, T> Sync for PagedRangesReader<'a, T>where
T: Sync,
impl<'a, T> Unpin for PagedRangesReader<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for PagedRangesReader<'a, T>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)