[−][src]Struct mmap_allocator::mmap_allocator::MmapAllocator
Allocator whose backend is mmap(2)
Trait Implementations
impl Clone for MmapAllocator
[src]
fn clone(&self) -> MmapAllocator
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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
impl RefUnwindSafe for MmapAllocator
impl Send for MmapAllocator
impl Sync for MmapAllocator
impl Unpin for MmapAllocator
impl UnwindSafe for MmapAllocator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,