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§
Source§impl DeviceMemoryRange
impl DeviceMemoryRange
Sourcepub const fn new(
backend: BackendKind,
allocation: u64,
offset: usize,
len: usize,
) -> DeviceMemoryRange
pub const fn new( backend: BackendKind, allocation: u64, offset: usize, len: usize, ) -> DeviceMemoryRange
Construct a backend-local memory range.
Trait Implementations§
Source§impl Clone for DeviceMemoryRange
impl Clone for DeviceMemoryRange
Source§fn clone(&self) -> DeviceMemoryRange
fn clone(&self) -> DeviceMemoryRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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
Source§fn eq(&self, other: &DeviceMemoryRange) -> bool
fn eq(&self, other: &DeviceMemoryRange) -> bool
Tests for
self and other values to be equal, and is used by ==.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