[−][src]Struct alloc_compose::NullAlloc
An emphatically empty implementation of AllocRef.
Although it has no direct use, it is useful as a "terminator" in composite allocators.
Trait Implementations
impl AllocRef for NullAlloc[src]
fn alloc(
self,
_layout: Layout,
_init: AllocInit
) -> Result<MemoryBlock, AllocErr>[src]
self,
_layout: Layout,
_init: AllocInit
) -> Result<MemoryBlock, AllocErr>
unsafe fn dealloc(self, _memory: MemoryBlock)[src]
unsafe fn grow(
self,
_memory: &mut MemoryBlock,
_new_size: usize,
_placement: ReallocPlacement,
_init: AllocInit
) -> Result<(), AllocErr>[src]
self,
_memory: &mut MemoryBlock,
_new_size: usize,
_placement: ReallocPlacement,
_init: AllocInit
) -> Result<(), AllocErr>
unsafe fn shrink(
self,
_memory: &mut MemoryBlock,
_new_size: usize,
_placement: ReallocPlacement
) -> Result<(), AllocErr>[src]
self,
_memory: &mut MemoryBlock,
_new_size: usize,
_placement: ReallocPlacement
) -> Result<(), AllocErr>
impl Clone for NullAlloc[src]
fn clone(&self) -> NullAlloc[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for NullAlloc[src]
impl Debug for NullAlloc[src]
impl Owns for NullAlloc[src]
fn owns(&self, _memory: &MemoryBlock) -> bool[src]
Auto Trait Implementations
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>,