[][src]Struct alloc_compose::region::Region

pub struct Region<'mem> { /* fields omitted */ }

A stack allocator over an user-defined region of memory.

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 RawRegion instead.

Implementations

impl<'mem> Region<'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 Region<'_>[src]

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

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

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

impl<'_> PartialEq<RawRegion> for Region<'_>[src]

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

impl<'_> PartialEq<Region<'_>> for RawRegion[src]

Auto Trait Implementations

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

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

impl<'mem> Unpin for Region<'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, 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.