[−][src]Struct alloc_compose::MemoryMarker
Marks newly allocated and deallocated memory with a byte pattern.
When allocating unintitialized memory, the block is set to 0xCD. Before deallocating,
the memory is set 0xDD.
Those values are choosed according to Magic Debug Values to match the Visual
Studio Debug Heap implementation.
Once, const_generics allows default implementations, the values may be alterd with a parameter.
Trait Implementations
impl<A: AllocRef> AllocRef for MemoryMarker<A>[src]
fn alloc(
&mut self,
layout: Layout,
init: AllocInit
) -> Result<MemoryBlock, AllocErr>[src]
&mut self,
layout: Layout,
init: AllocInit
) -> Result<MemoryBlock, AllocErr>
unsafe fn dealloc(&mut self, ptr: NonNull<u8>, layout: Layout)[src]
unsafe fn grow(
&mut self,
ptr: NonNull<u8>,
layout: Layout,
new_size: usize,
placement: ReallocPlacement,
init: AllocInit
) -> Result<MemoryBlock, AllocErr>[src]
&mut self,
ptr: NonNull<u8>,
layout: Layout,
new_size: usize,
placement: ReallocPlacement,
init: AllocInit
) -> Result<MemoryBlock, AllocErr>
unsafe fn shrink(
&mut self,
ptr: NonNull<u8>,
layout: Layout,
new_size: usize,
placement: ReallocPlacement
) -> Result<MemoryBlock, AllocErr>[src]
&mut self,
ptr: NonNull<u8>,
layout: Layout,
new_size: usize,
placement: ReallocPlacement
) -> Result<MemoryBlock, AllocErr>
fn by_ref(&mut self) -> &mut Self[src]
impl<A: Clone> Clone for MemoryMarker<A>[src]
fn clone(&self) -> MemoryMarker<A>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<A: Copy> Copy for MemoryMarker<A>[src]
impl<A: Debug> Debug for MemoryMarker<A>[src]
impl<A: Default> Default for MemoryMarker<A>[src]
fn default() -> MemoryMarker<A>[src]
impl<A: Eq> Eq for MemoryMarker<A>[src]
impl<A: Owns> Owns for MemoryMarker<A>[src]
fn owns(&self, memory: MemoryBlock) -> bool[src]
impl<A: PartialEq> PartialEq<MemoryMarker<A>> for MemoryMarker<A>[src]
fn eq(&self, other: &MemoryMarker<A>) -> bool[src]
fn ne(&self, other: &MemoryMarker<A>) -> bool[src]
impl<A> StructuralEq for MemoryMarker<A>[src]
impl<A> StructuralPartialEq for MemoryMarker<A>[src]
Auto Trait Implementations
impl<A> RefUnwindSafe for MemoryMarker<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for MemoryMarker<A> where
A: Send,
A: Send,
impl<A> Sync for MemoryMarker<A> where
A: Sync,
A: Sync,
impl<A> Unpin for MemoryMarker<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for MemoryMarker<A> where
A: UnwindSafe,
A: UnwindSafe,
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>,