pub struct NoSupAllocator {}Trait Implementations§
Source§impl Allocator for NoSupAllocator
impl Allocator for NoSupAllocator
unsafe fn alloc( &self, _size: NonZeroUsize, _align: Pow2Usize, ) -> Result<NonNull<u8>, AllocError>
unsafe fn free( &self, _ptr: NonNull<u8>, _current_size: NonZeroUsize, _align: Pow2Usize, )
unsafe fn grow( &self, _ptr: NonNull<u8>, _current_size: NonZeroUsize, _new_larger_size: NonZeroUsize, _align: Pow2Usize, ) -> Result<NonNull<u8>, AllocError>
unsafe fn shrink( &self, _ptr: NonNull<u8>, _current_size: NonZeroUsize, _new_smaller_size: NonZeroUsize, _align: Pow2Usize, ) -> Result<NonNull<u8>, AllocError>
fn supports_contains(&self) -> bool
fn contains(&self, _ptr: NonNull<u8>) -> bool
fn name(&self) -> &'static str
fn to_ref(&self) -> AllocatorRef<'_>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for NoSupAllocator
impl RefUnwindSafe for NoSupAllocator
impl Send for NoSupAllocator
impl Sync for NoSupAllocator
impl Unpin for NoSupAllocator
impl UnsafeUnpin for NoSupAllocator
impl UnwindSafe for NoSupAllocator
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