pub struct MemoryAllocation {
pub buffer: Arc<Buffer>,
pub offset: u64,
pub size: u64,
/* private fields */
}Expand description
A suballocation from the memory pool.
Fields§
§buffer: Arc<Buffer>The underlying buffer.
offset: u64Offset into the buffer.
size: u64Size of the allocation.
Implementations§
Source§impl MemoryAllocation
impl MemoryAllocation
Sourcepub fn slice(&self) -> BufferSlice<'_>
pub fn slice(&self) -> BufferSlice<'_>
Get a slice of the buffer for this allocation.
Trait Implementations§
Source§impl Clone for MemoryAllocation
impl Clone for MemoryAllocation
Source§fn clone(&self) -> MemoryAllocation
fn clone(&self) -> MemoryAllocation
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for MemoryAllocation
impl !RefUnwindSafe for MemoryAllocation
impl Send for MemoryAllocation
impl Sync for MemoryAllocation
impl Unpin for MemoryAllocation
impl UnsafeUnpin for MemoryAllocation
impl !UnwindSafe for MemoryAllocation
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