pub struct Alloc { /* private fields */ }Expand description
rt’s allocator, for a program with std that wants it instead of the system’s:
#[global_allocator] static ALLOC: jflib::rt::Alloc = jflib::rt::Alloc::new();
Implementations§
Trait Implementations§
Source§impl GlobalAlloc for Alloc
impl GlobalAlloc for Alloc
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 Alloc
Auto Trait Implementations§
impl !Freeze for Alloc
impl !RefUnwindSafe for Alloc
impl !Send for Alloc
impl Forget for Alloc
impl Unpin for Alloc
impl UnsafeUnpin for Alloc
impl UnwindSafe for Alloc
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