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

pub struct RawIntrusiveRegion { /* fields omitted */ }

An intrusive region allocator, which stores the current posision in the provided memory.

This is the non-lifetime version of IntrusiveRegion.

Implementations

impl RawIntrusiveRegion[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 IntrusiveRegion instead.

Panics

This function panics, when memory is not large enough to properly store a pointer.

Trait Implementations

impl AllocRef for RawIntrusiveRegion[src]

impl AllocateAll for RawIntrusiveRegion[src]

impl Clone for RawIntrusiveRegion[src]

impl Debug for RawIntrusiveRegion[src]

impl GlobalAlloc for RawIntrusiveRegion[src]

impl Owns for RawIntrusiveRegion[src]

impl<'_> PartialEq<IntrusiveRegion<'_>> for RawIntrusiveRegion[src]

impl PartialEq<RawIntrusiveRegion> for RawIntrusiveRegion[src]

impl<'_> PartialEq<RawIntrusiveRegion> for IntrusiveRegion<'_>[src]

Auto Trait Implementations

impl !Send for RawIntrusiveRegion

impl !Sync for RawIntrusiveRegion

impl Unpin for RawIntrusiveRegion

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.