Struct xalloc::arena::sys::SysAllocator
source · pub struct SysAllocator;
Expand description
UnsafeArena
implementation that relies on the system memory allocator.
Trait Implementations
sourceimpl Clone for SysAllocator
impl Clone for SysAllocator
sourcefn clone(&self) -> SysAllocator
fn clone(&self) -> SysAllocator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SysAllocator
impl Debug for SysAllocator
sourceimpl<T> UnsafeArena<T> for SysAllocator
impl<T> UnsafeArena<T> for SysAllocator
sourceunsafe 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.
sourceunsafe 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. Read more
sourceunsafe 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
sourceimpl<T> UnsafeArenaWithMembershipCheck<T> for SysAllocator
impl<T> UnsafeArenaWithMembershipCheck<T> for SysAllocator
sourceunsafe fn contains_unchecked(&self, _ptr: &Self::Ptr) -> bool
unsafe fn contains_unchecked(&self, _ptr: &Self::Ptr) -> bool
Return
true
if the pointer was created from the same instance of the
arena. Read moreimpl Copy for SysAllocator
Auto Trait Implementations
impl RefUnwindSafe for SysAllocator
impl Send for SysAllocator
impl Sync for SysAllocator
impl Unpin for SysAllocator
impl UnwindSafe for SysAllocator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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