Struct xalloc::arena::sys::SysAllocator
[−]
[src]
pub struct SysAllocator;
UnsafeArena
implementation that relies on the system memory allocator.
Trait Implementations
impl Debug for SysAllocator
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for SysAllocator
[src]
fn clone(&self) -> SysAllocator
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for SysAllocator
[src]
impl<T> UnsafeArena<T> for SysAllocator
[src]
type Ptr = Ptr
Pointer type. Read more
fn insert(&mut self, x: T) -> Self::Ptr
[src]
Insert a value into the arena. Read more
unsafe fn get_unchecked(&self, ptr: &Self::Ptr) -> &T
[src]
Get a reference to a contained value, without a pointer validity check.
unsafe fn get_unchecked_mut(&mut self, ptr: &Self::Ptr) -> &mut T
[src]
Get a mutable reference to a contained value, without a pointer validity check. Read more
unsafe fn remove_unchecked(&mut self, ptr: &Self::Ptr) -> T
[src]
Remove a value from the arena, without a pointer validity check. Read more
fn reserve(&mut self, _additional: usize)
[src]
Reserves capacity for at least additional
values to be inserted in the arena.
impl<T> UnsafeArenaWithMembershipCheck<T> for SysAllocator
[src]
unsafe fn contains_unchecked(&self, _ptr: &Self::Ptr) -> bool
[src]
Return true
if the pointer was created from the same instance of the arena. Read more