pub struct VecObjectAlloc;
Trait Implementations§
Source§impl Allocator for VecObjectAlloc
impl Allocator for VecObjectAlloc
Source§fn alloc(&self, layout: Layout) -> Result<GlobalPtr<u8>, AllocError>
fn alloc(&self, layout: Layout) -> Result<GlobalPtr<u8>, AllocError>
Allocate based on layout within this allocator. Returns a global pointer
to the start of the allocation. Read more
Source§unsafe fn realloc(
&self,
_ptr: GlobalPtr<u8>,
_layout: Layout,
newsize: usize,
) -> Result<GlobalPtr<u8>, AllocError>
unsafe fn realloc( &self, _ptr: GlobalPtr<u8>, _layout: Layout, newsize: usize, ) -> Result<GlobalPtr<u8>, AllocError>
Reallocate an allocation. Read more
Source§fn alloc_with<T>(
&self,
f: impl FnOnce(RefMut<'_, MaybeUninit<T>>) -> Result<RefMut<'_, T>, AllocError>,
) -> Result<GlobalPtr<u8>, AllocError>
fn alloc_with<T>( &self, f: impl FnOnce(RefMut<'_, MaybeUninit<T>>) -> Result<RefMut<'_, T>, AllocError>, ) -> Result<GlobalPtr<u8>, AllocError>
Allocate based on layout within this allocator. Returns a global pointer
to the start of the allocation. Read more
Source§impl Clone for VecObjectAlloc
impl Clone for VecObjectAlloc
Source§fn clone(&self) -> VecObjectAlloc
fn clone(&self) -> VecObjectAlloc
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl SingleObjectAllocator for VecObjectAlloc
Auto Trait Implementations§
impl Freeze for VecObjectAlloc
impl ObjSafe for VecObjectAlloc
impl RefUnwindSafe for VecObjectAlloc
impl Send for VecObjectAlloc
impl StoreCopy for VecObjectAlloc
impl Sync for VecObjectAlloc
impl Unpin for VecObjectAlloc
impl UnwindSafe for VecObjectAlloc
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