Struct platform_mem::AllocMem
source · [−]pub struct AllocMem<T, A: Allocator> { /* private fields */ }
Implementations
Trait Implementations
sourceimpl<T: Default, A: Allocator> RawMem<T> for AllocMem<T, A>
impl<T: Default, A: Allocator> RawMem<T> for AllocMem<T, A>
fn alloc(&mut self, capacity: usize) -> Result<&mut [T]>
fn allocated(&self) -> usize
fn occupy(&mut self, capacity: usize) -> Result<()>
fn occupied(&self) -> usize
fn grow(&mut self, capacity: usize) -> Result<&mut [T]>
fn shrink(&mut self, capacity: usize) -> Result<&mut [T]>
fn grow_occupied(&mut self, capacity: usize) -> Result<()>
fn shrink_occupied(&mut self, capacity: usize) -> Result<()>
Auto Trait Implementations
impl<T, A> RefUnwindSafe for AllocMem<T, A> where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, A> !Send for AllocMem<T, A>
impl<T, A> !Sync for AllocMem<T, A>
impl<T, A> Unpin for AllocMem<T, A> where
A: Unpin,
impl<T, A> UnwindSafe for AllocMem<T, A> where
A: UnwindSafe,
T: RefUnwindSafe,
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