[][src]Struct alloc_compose::region::SharedRegion

pub struct SharedRegion<'mem> { /* fields omitted */ }
This is supported on crate feature alloc only.

A clonable region allocator based on Rc.

It holds a lifetime to the provided memory block, which ensures, that the allocator does not outlive the underlying memory.

For a version without lifetime see RawSharedRegion instead.

Implementations

impl<'mem> SharedRegion<'mem>[src]

pub fn new(memory: &'mem mut [MaybeUninit<u8>]) -> Self[src]

Creates a new region from the given memory block.

Trait Implementations

impl<'_> AllocRef for SharedRegion<'_>[src]

impl<'_> AllocateAll for SharedRegion<'_>[src]

impl<'mem> Clone for SharedRegion<'mem>[src]

impl<'_> GlobalAlloc for SharedRegion<'_>[src]

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

impl<'_> PartialEq<RawSharedRegion> for SharedRegion<'_>[src]

impl<'_> PartialEq<SharedRegion<'_>> for SharedRegion<'_>[src]

impl<'_> PartialEq<SharedRegion<'_>> for RawSharedRegion[src]

Auto Trait Implementations

impl<'mem> !Send for SharedRegion<'mem>

impl<'mem> !Sync for SharedRegion<'mem>

impl<'mem> Unpin for SharedRegion<'mem>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.