pub struct Smalloc { /* private fields */ }Expand description
A simple, fast memory allocator.
§Example
use smalloc::Smalloc;
#[global_allocator]
static ALLOC: Smalloc = Smalloc::new();Implementations§
Trait Implementations§
Source§impl GlobalAlloc for Smalloc
impl GlobalAlloc for Smalloc
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 moreAuto Trait Implementations§
impl !Freeze for Smalloc
impl !RefUnwindSafe for Smalloc
impl Send for Smalloc
impl Unpin for Smalloc
impl UnwindSafe for Smalloc
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