pub struct UsmSubAllocation {
pub offset: u64,
pub size: u64,
}Expand description
A sub-allocation carved out of a USM block.
Fields§
§offset: u64Byte offset of the allocation within the backing block.
size: u64Requested usable size (not the alignment-padded size).
Trait Implementations§
Source§impl Clone for UsmSubAllocation
impl Clone for UsmSubAllocation
Source§fn clone(&self) -> UsmSubAllocation
fn clone(&self) -> UsmSubAllocation
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 UsmSubAllocation
Source§impl Debug for UsmSubAllocation
impl Debug for UsmSubAllocation
impl Eq for UsmSubAllocation
Source§impl PartialEq for UsmSubAllocation
impl PartialEq for UsmSubAllocation
Source§fn eq(&self, other: &UsmSubAllocation) -> bool
fn eq(&self, other: &UsmSubAllocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UsmSubAllocation
Auto Trait Implementations§
impl Freeze for UsmSubAllocation
impl RefUnwindSafe for UsmSubAllocation
impl Send for UsmSubAllocation
impl Sync for UsmSubAllocation
impl Unpin for UsmSubAllocation
impl UnsafeUnpin for UsmSubAllocation
impl UnwindSafe for UsmSubAllocation
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