Struct skyline::unix_alloc::UnixAllocator
source · [−]pub struct UnixAllocator;
Implementations
sourceimpl UnixAllocator
impl UnixAllocator
Trait Implementations
sourceimpl GlobalAlloc for UnixAllocator
impl GlobalAlloc for UnixAllocator
sourceunsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocate memory as described by the given layout
. Read more
sourceunsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
Behaves like alloc
, but also ensures that the contents
are set to zero before being returned. Read more
Auto Trait Implementations
impl RefUnwindSafe for UnixAllocator
impl Send for UnixAllocator
impl Sync for UnixAllocator
impl Unpin for UnixAllocator
impl UnwindSafe for UnixAllocator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more