[][src]Trait alloc_compose::Owns

pub trait Owns {
    fn owns(&self, ptr: NonNull<[u8]>) -> bool;
}

Trait to determine if a given MemoryBlock is owned by an allocator.

Required methods

fn owns(&self, ptr: NonNull<[u8]>) -> bool

Returns if the allocator owns the passed MemoryBlock.

Loading content...

Implementors

impl Owns for Null[src]

fn owns(&self, _memory: NonNull<[u8]>) -> bool[src]

Will always return `false.

impl<'_> Owns for Region<'_>[src]

impl<A: Owns, C: CallbackRef> Owns for Proxy<A, C>[src]

impl<A: Owns, const SIZE: usize> Owns for Chunk<A, SIZE> where
    Self: SizeIsPowerOfTwo, 
[src]

impl<Primary, Secondary> Owns for Fallback<Primary, Secondary> where
    Primary: Owns,
    Secondary: Owns
[src]

impl<Small, Large, const THRESHOLD: usize> Owns for Segregate<Small, Large, THRESHOLD> where
    Small: Owns,
    Large: Owns
[src]

Loading content...