pub struct SysAllocator;Expand description
UnsafeArena implementation that relies on the system memory allocator.
Trait Implementations§
Source§impl Clone for SysAllocator
impl Clone for SysAllocator
Source§fn clone(&self) -> SysAllocator
fn clone(&self) -> SysAllocator
Returns a duplicate 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 Debug for SysAllocator
impl Debug for SysAllocator
Source§impl<T> UnsafeArena<T> for SysAllocator
impl<T> UnsafeArena<T> for SysAllocator
Source§unsafe fn get_unchecked(&self, ptr: &Self::Ptr) -> &T
unsafe fn get_unchecked(&self, ptr: &Self::Ptr) -> &T
Get a reference to a contained value, without a pointer validity check.
Source§unsafe fn get_unchecked_mut(&mut self, ptr: &Self::Ptr) -> &mut T
unsafe fn get_unchecked_mut(&mut self, ptr: &Self::Ptr) -> &mut T
Get a mutable reference to a contained value, without a pointer validity
check.
Source§unsafe fn remove_unchecked(&mut self, ptr: &Self::Ptr) -> T
unsafe fn remove_unchecked(&mut self, ptr: &Self::Ptr) -> T
Remove a value from the arena, without a pointer validity check. Read more
Source§impl<T> UnsafeArenaWithMembershipCheck<T> for SysAllocator
impl<T> UnsafeArenaWithMembershipCheck<T> for SysAllocator
impl Copy for SysAllocator
Auto Trait Implementations§
impl Freeze for SysAllocator
impl RefUnwindSafe for SysAllocator
impl Send for SysAllocator
impl Sync for SysAllocator
impl Unpin for SysAllocator
impl UnwindSafe for SysAllocator
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