Struct virtio_device::mem::DriverRange
source · pub struct DriverRange(pub Range<usize>);
Expand description
Represents a range of memory as seen from the driver.
These ranges are only published by the driver and should never otherwise need to be created. The
The only meaningful thing that can be done with them is to use the DriverMem::translate
method to attempt to turn it into a DeviceRange
.
Tuple Fields§
§0: Range<usize>
Implementations§
source§impl DriverRange
impl DriverRange
Trait Implementations§
source§impl Clone for DriverRange
impl Clone for DriverRange
source§fn clone(&self) -> DriverRange
fn clone(&self) -> DriverRange
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 Debug for DriverRange
impl Debug for DriverRange
source§impl PartialEq for DriverRange
impl PartialEq for DriverRange
source§fn eq(&self, other: &DriverRange) -> bool
fn eq(&self, other: &DriverRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DriverRange
impl StructuralPartialEq for DriverRange
Auto Trait Implementations§
impl Freeze for DriverRange
impl RefUnwindSafe for DriverRange
impl Send for DriverRange
impl Sync for DriverRange
impl Unpin for DriverRange
impl UnwindSafe for DriverRange
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)