pub struct StackAllocator<const N: usize> { /* private fields */ }Expand description
Stack-based allocator for fixed-size allocations
Maintains a stack of allocations and only allows deallocation in LIFO order
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize> !Freeze for StackAllocator<N>
impl<const N: usize> !RefUnwindSafe for StackAllocator<N>
impl<const N: usize> Send for StackAllocator<N>
impl<const N: usize> !Sync for StackAllocator<N>
impl<const N: usize> Unpin for StackAllocator<N>
impl<const N: usize> UnsafeUnpin for StackAllocator<N>
impl<const N: usize> UnwindSafe for StackAllocator<N>
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