pub struct DeviceMemoryRange {
pub backend: BackendKind,
pub allocation: u64,
pub offset: usize,
pub len: usize,
}Expand description
Opaque byte range in accelerator-visible memory.
Fields§
§backend: BackendKindBackend that owns the range.
allocation: u64Backend-local allocation identifier. Backends define its meaning.
offset: usizeByte offset inside the allocation.
len: usizeByte length of the range.
Implementations§
Trait Implementations§
Source§impl Clone for DeviceMemoryRange
impl Clone for DeviceMemoryRange
impl Copy for DeviceMemoryRange
Source§impl Debug for DeviceMemoryRange
impl Debug for DeviceMemoryRange
impl Eq for DeviceMemoryRange
Source§impl Hash for DeviceMemoryRange
impl Hash for DeviceMemoryRange
Source§impl PartialEq for DeviceMemoryRange
impl PartialEq for DeviceMemoryRange
impl StructuralPartialEq for DeviceMemoryRange
Auto Trait Implementations§
impl Freeze for DeviceMemoryRange
impl RefUnwindSafe for DeviceMemoryRange
impl Send for DeviceMemoryRange
impl Sync for DeviceMemoryRange
impl Unpin for DeviceMemoryRange
impl UnsafeUnpin for DeviceMemoryRange
impl UnwindSafe for DeviceMemoryRange
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