#[repr(C, align(16))]pub struct Allocator<const SIZE: usize>(/* private fields */);
Expand description
A fixed-size single allocation allocator.
Implementations§
Trait Implementations§
Source§impl<const SIZE: usize> GlobalAlloc for Allocator<SIZE>
impl<const SIZE: usize> GlobalAlloc for Allocator<SIZE>
Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout
. Read moreimpl<const SIZE: usize> Sync for Allocator<SIZE>
Auto Trait Implementations§
impl<const SIZE: usize> !Freeze for Allocator<SIZE>
impl<const SIZE: usize> !RefUnwindSafe for Allocator<SIZE>
impl<const SIZE: usize> Send for Allocator<SIZE>
impl<const SIZE: usize> Unpin for Allocator<SIZE>
impl<const SIZE: usize> UnwindSafe for Allocator<SIZE>
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