[][src]Trait xalloc::arena::UnsafeArenaWithMembershipCheck

pub trait UnsafeArenaWithMembershipCheck<T>: UnsafeArena<T> {
    pub unsafe fn contains_unchecked(&self, ptr: &Self::Ptr) -> bool;
}

Homogeneous memory arena types capable of checking whether a given pointer was created by the same instance of the arena.

Required methods

pub unsafe fn contains_unchecked(&self, ptr: &Self::Ptr) -> bool[src]

Return true if the pointer was created from the same instance of the arena.

Calling this with an already-freed pointer or an uninitialized pointer might result in an undefined behavior.

Loading content...

Implementors

impl<T> UnsafeArenaWithMembershipCheck<T> for CheckedArena<T>[src]

impl<T> UnsafeArenaWithMembershipCheck<T> for SysAllocator[src]

impl<T, A, P> UnsafeArenaWithMembershipCheck<T> for PooledArena<T, A, P> where
    A: UnsafeArena<Entry<T, P>, Ptr = P> + UnsafeArenaWithMembershipCheck<Entry<T, P>>,
    P: Clone + Default + PartialEq + Eq + Debug
[src]

Loading content...