pub struct ArenaAllocation { /* private fields */ }Expand description
A generation-checked allocation within a PagedArena.
Implementations§
Source§impl ArenaAllocation
impl ArenaAllocation
Sourcepub const fn start_page(self) -> u32
pub const fn start_page(self) -> u32
First page occupied by this allocation.
Sourcepub const fn page_count(self) -> u32
pub const fn page_count(self) -> u32
Number of whole pages reserved.
Sourcepub const fn byte_offset(self) -> u64
pub const fn byte_offset(self) -> u64
Byte offset suitable for binding or copy commands.
Trait Implementations§
Source§impl Clone for ArenaAllocation
impl Clone for ArenaAllocation
impl Copy for ArenaAllocation
Source§impl Debug for ArenaAllocation
impl Debug for ArenaAllocation
impl Eq for ArenaAllocation
Source§impl PartialEq for ArenaAllocation
impl PartialEq for ArenaAllocation
impl StructuralPartialEq for ArenaAllocation
Auto Trait Implementations§
impl Freeze for ArenaAllocation
impl RefUnwindSafe for ArenaAllocation
impl Send for ArenaAllocation
impl Sync for ArenaAllocation
impl Unpin for ArenaAllocation
impl UnsafeUnpin for ArenaAllocation
impl UnwindSafe for ArenaAllocation
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