[][src]Trait alloc_compose::Owns

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

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

Required methods

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

Returns if the allocator owns the passed memory.

Loading content...

Implementations on Foreign Types

impl<A: ?Sized> Owns for Box<A> where
    A: Owns
[src]

This is supported on crate feature alloc only.

impl<A: ?Sized> Owns for Rc<A> where
    A: Owns
[src]

This is supported on crate feature alloc only.

impl<A: ?Sized> Owns for Arc<A> where
    A: Owns
[src]

This is supported on crate feature alloc only.
Loading content...

Implementors

impl Owns for RawIntrusiveRegion[src]

impl Owns for RawRegion[src]

impl Owns for RawSharedRegion[src]

impl Owns for Null[src]

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

Will always return `false.

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

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

impl<'_> Owns for SharedRegion<'_>[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<A: ?Sized, '_> Owns for &'_ A where
    A: Owns
[src]

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

Loading content...