pub struct OperationPhysicalRegion<'a, B> { /* private fields */ }Expand description
One indivisible physical region. The buffer reference is intentionally returned only together with the physical byte range.
Implementations§
Source§impl<'a, B> OperationPhysicalRegion<'a, B>
impl<'a, B> OperationPhysicalRegion<'a, B>
pub const fn logical_offset_bytes(&self) -> u64
pub const fn length_bytes(&self) -> u64
pub fn buffer_and_physical_range( &self, ) -> (&'a B, Range<u64>, DeviceBufferRetention)
Auto Trait Implementations§
impl<'a, B> !RefUnwindSafe for OperationPhysicalRegion<'a, B>
impl<'a, B> !UnwindSafe for OperationPhysicalRegion<'a, B>
impl<'a, B> Freeze for OperationPhysicalRegion<'a, B>
impl<'a, B> Send for OperationPhysicalRegion<'a, B>
impl<'a, B> Sync for OperationPhysicalRegion<'a, B>
impl<'a, B> Unpin for OperationPhysicalRegion<'a, B>
impl<'a, B> UnsafeUnpin for OperationPhysicalRegion<'a, B>where
&'a B: UnsafeUnpin,
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