Struct platform_mem::GlobalMem
source · [−]pub struct GlobalMem<T>(_);Implementations
Trait Implementations
sourceimpl<T: Default> RawMem<T> for GlobalMem<T>
impl<T: Default> RawMem<T> for GlobalMem<T>
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> RefUnwindSafe for GlobalMem<T> where
T: RefUnwindSafe,
impl<T> !Send for GlobalMem<T>
impl<T> !Sync for GlobalMem<T>
impl<T> Unpin for GlobalMem<T>
impl<T> UnwindSafe for GlobalMem<T> where
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