Struct xalloc::arena::sys::SysAllocator
[−]
[src]
pub struct SysAllocator;
UnsafeArena
implementation that relies on the system memory allocator.
Trait Implementations
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