pub struct ScopeAllocator { /* private fields */ }Implementations§
Source§impl ScopeAllocator
impl ScopeAllocator
pub const fn new(target_info: FrameMemoryRegion) -> Self
pub fn allocate( &mut self, size: MemorySize, alignment: MemoryAlignment, ) -> FrameMemoryAddress
pub fn reserve( &mut self, size: MemorySize, alignment: MemoryAlignment, ) -> FrameMemoryRegion
pub const fn create_scope(&self) -> Self
pub const fn addr(&self) -> FrameMemoryAddress
pub fn reset(&mut self)
Trait Implementations§
Source§impl Clone for ScopeAllocator
impl Clone for ScopeAllocator
Source§fn clone(&self) -> ScopeAllocator
fn clone(&self) -> ScopeAllocator
Returns a copy 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 moreimpl Copy for ScopeAllocator
Auto Trait Implementations§
impl Freeze for ScopeAllocator
impl RefUnwindSafe for ScopeAllocator
impl Send for ScopeAllocator
impl Sync for ScopeAllocator
impl Unpin for ScopeAllocator
impl UnwindSafe for ScopeAllocator
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