pub struct StdAllocatedMemory { /* private fields */ }
Available on crate feature
std_alloc
only.Expand description
A thin wrapper around *mut u8
.
Trait Implementations§
Source§impl AllocatedMemory for StdAllocatedMemory
impl AllocatedMemory for StdAllocatedMemory
Source§fn resize(
self,
old_layout: Layout,
new_layout: Layout,
) -> Result<Self, AllocationError>
fn resize( self, old_layout: Layout, new_layout: Layout, ) -> Result<Self, AllocationError>
Resizes the
AllocatedMemory
to a new layout. Read moreSource§fn deallocate(self, layout: Layout)
fn deallocate(self, layout: Layout)
Deallocates the
AllocatedMemory
.Source§impl Clone for StdAllocatedMemory
impl Clone for StdAllocatedMemory
Source§fn clone(&self) -> StdAllocatedMemory
fn clone(&self) -> StdAllocatedMemory
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StdAllocatedMemory
impl Debug for StdAllocatedMemory
Source§impl Hash for StdAllocatedMemory
impl Hash for StdAllocatedMemory
Source§impl PartialEq for StdAllocatedMemory
impl PartialEq for StdAllocatedMemory
impl Eq for StdAllocatedMemory
impl StructuralPartialEq for StdAllocatedMemory
Auto Trait Implementations§
impl Freeze for StdAllocatedMemory
impl RefUnwindSafe for StdAllocatedMemory
impl !Send for StdAllocatedMemory
impl !Sync for StdAllocatedMemory
impl Unpin for StdAllocatedMemory
impl UnwindSafe for StdAllocatedMemory
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