[][src]Struct mmap_allocator::mmap_allocator::MmapAllocator

pub struct MmapAllocator;

Allocator whose backend is mmap(2)

Trait Implementations

impl Clone for MmapAllocator[src]

impl Copy for MmapAllocator[src]

impl Debug for MmapAllocator[src]

impl Default for MmapAllocator[src]

impl GlobalAlloc for MmapAllocator[src]

Portability

alloc() calls mmap() with flag MAP_ANONYMOUS. Many systems support the flag, however, it is not specified in POSIX.

Safety

All functions are thread safe.

Error

Each function don't cause panic but set OS errno on error.

Note that it is not an error to deallocate pointer which is not allocated. This is the spec of munmap(2). See man 2 munmap for details.

Auto Trait Implementations

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.