[][src]Struct alloc_compose::MemoryMarker

pub struct MemoryMarker<A>(pub A);

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]

impl<A: Clone> Clone for MemoryMarker<A>[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]

impl<A: Eq> Eq for MemoryMarker<A>[src]

impl<A: Owns> Owns for MemoryMarker<A>[src]

impl<A: PartialEq> PartialEq<MemoryMarker<A>> for MemoryMarker<A>[src]

impl<A> StructuralEq for MemoryMarker<A>[src]

impl<A> StructuralPartialEq for MemoryMarker<A>[src]

Auto Trait Implementations

impl<A> Send for MemoryMarker<A> where
    A: Send

impl<A> Sync for MemoryMarker<A> where
    A: Sync

impl<A> Unpin for MemoryMarker<A> where
    A: Unpin

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.