pub struct PlaydateAllocator;Trait Implementations§
Source§impl GlobalAlloc for PlaydateAllocator
impl GlobalAlloc for PlaydateAllocator
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 moreSource§unsafe fn realloc(
&self,
ptr: *mut u8,
_layout: Layout,
new_size: usize,
) -> *mut u8
unsafe fn realloc( &self, ptr: *mut u8, _layout: Layout, new_size: usize, ) -> *mut u8
Shrinks or grows a block of memory to the given
new_size in bytes.
The block is described by the given ptr pointer and layout. Read more1.28.0§unsafe 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 moreAuto Trait Implementations§
impl Freeze for PlaydateAllocator
impl RefUnwindSafe for PlaydateAllocator
impl Send for PlaydateAllocator
impl Sync for PlaydateAllocator
impl Unpin for PlaydateAllocator
impl UnwindSafe for PlaydateAllocator
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes