pub struct NonThreadsafeAlloc { /* private fields */ }
Expand description
NonThreadsafeAlloc perfect for single threaded devices
Implementations§
Source§impl NonThreadsafeAlloc
impl NonThreadsafeAlloc
Sourcepub const fn new(
fast_alloc_param: FastAllocParam,
buddy_alloc_param: BuddyAllocParam,
) -> Self
pub const fn new( fast_alloc_param: FastAllocParam, buddy_alloc_param: BuddyAllocParam, ) -> Self
see BuddyAlloc::new
Trait Implementations§
Source§impl GlobalAlloc for NonThreadsafeAlloc
impl GlobalAlloc for NonThreadsafeAlloc
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 Sync for NonThreadsafeAlloc
Auto Trait Implementations§
impl !Freeze for NonThreadsafeAlloc
impl !RefUnwindSafe for NonThreadsafeAlloc
impl !Send for NonThreadsafeAlloc
impl Unpin for NonThreadsafeAlloc
impl UnwindSafe for NonThreadsafeAlloc
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