pub struct DeviceAllocationProvenance { /* private fields */ }Expand description
Physical provenance of a view of an allocation owned by XLOG.
Retains the actual allocation, not an address-derived identity. This is metadata only: it grants no device access, content validity, mutation exclusion, publication lease, or external tensor version-counter identity.
Implementations§
Source§impl DeviceAllocationProvenance
impl DeviceAllocationProvenance
Sourcepub fn same_allocation(&self, other: &Self) -> bool
pub fn same_allocation(&self, other: &Self) -> bool
Compare the retained physical owners, independently of view geometry.
Sourcepub fn allocation_bytes(&self) -> u64
pub fn allocation_bytes(&self) -> u64
Complete byte extent of the actual allocation, including padding.
pub fn byte_offset(&self) -> u64
pub fn view_bytes(&self) -> u64
Trait Implementations§
Source§impl Clone for DeviceAllocationProvenance
impl Clone for DeviceAllocationProvenance
Source§fn clone(&self) -> DeviceAllocationProvenance
fn clone(&self) -> DeviceAllocationProvenance
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for DeviceAllocationProvenance
impl !UnwindSafe for DeviceAllocationProvenance
impl Freeze for DeviceAllocationProvenance
impl Send for DeviceAllocationProvenance
impl Sync for DeviceAllocationProvenance
impl Unpin for DeviceAllocationProvenance
impl UnsafeUnpin for DeviceAllocationProvenance
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