[][src]Struct alloc_compose::region::raw::RawRegion

pub struct RawRegion { /* fields omitted */ }

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

This is the non-lifetime version of Region.

Implementations

impl RawRegion[src]

pub unsafe fn new(memory: NonNull<[u8]>) -> Self[src]

Creates a new region from the given memory block.

Safety

Behavior is undefined if any of the following conditions are violated:

  • memory must be valid for reads and writes for memory.len() many bytes.

  • memory must outlive the region.

  • memory.len() must be no larger than isize::MAX. See the safety documentation of pointer::offset.

For a safe variant use Region instead.

Trait Implementations

impl AllocRef for RawRegion[src]

impl AllocateAll for RawRegion[src]

impl Debug for RawRegion[src]

impl GlobalAlloc for RawRegion[src]

impl Owns for RawRegion[src]

impl PartialEq<RawRegion> for RawRegion[src]

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

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

Auto Trait Implementations

impl !Send for RawRegion

impl !Sync for RawRegion

impl Unpin for RawRegion

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.