pub struct HashTableAlloc {}
Trait Implementations§
Source§impl Allocator for HashTableAlloc
impl Allocator for HashTableAlloc
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 HashTableAlloc
impl Clone for HashTableAlloc
Source§fn clone(&self) -> HashTableAlloc
fn clone(&self) -> HashTableAlloc
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 moreSource§impl Default for HashTableAlloc
impl Default for HashTableAlloc
Source§fn default() -> HashTableAlloc
fn default() -> HashTableAlloc
Returns the “default value” for a type. Read more
impl Copy for HashTableAlloc
Auto Trait Implementations§
impl Freeze for HashTableAlloc
impl ObjSafe for HashTableAlloc
impl RefUnwindSafe for HashTableAlloc
impl Send for HashTableAlloc
impl StoreCopy for HashTableAlloc
impl Sync for HashTableAlloc
impl Unpin for HashTableAlloc
impl UnwindSafe for HashTableAlloc
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