[][src]Struct alloc_compose::ChunkAlloc

pub struct ChunkAlloc<A, const SIZE: usize>(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, const SIZE: usize> AllocRef for ChunkAlloc<A, SIZE>[src]

impl<A: Clone, const SIZE: usize> Clone for ChunkAlloc<A, SIZE>[src]

impl<A: Copy, const SIZE: usize> Copy for ChunkAlloc<A, SIZE>[src]

impl<A: Debug, const SIZE: usize> Debug for ChunkAlloc<A, SIZE>[src]

impl<A: Default, const SIZE: usize> Default for ChunkAlloc<A, SIZE>[src]

impl<A: Eq, const SIZE: usize> Eq for ChunkAlloc<A, SIZE>[src]

impl<A: Owns, const SIZE: usize> Owns for ChunkAlloc<A, SIZE>[src]

impl<A: PartialEq, const SIZE: usize> PartialEq<ChunkAlloc<A, SIZE>> for ChunkAlloc<A, SIZE>[src]

impl<A, const SIZE: usize> StructuralEq for ChunkAlloc<A, SIZE>[src]

impl<A, const SIZE: usize> StructuralPartialEq for ChunkAlloc<A, SIZE>[src]

Auto Trait Implementations

impl<const SIZE: usize, A> RefUnwindSafe for ChunkAlloc<A, SIZE> where
    A: RefUnwindSafe

impl<const SIZE: usize, A> Send for ChunkAlloc<A, SIZE> where
    A: Send

impl<const SIZE: usize, A> Sync for ChunkAlloc<A, SIZE> where
    A: Sync

impl<const SIZE: usize, A> Unpin for ChunkAlloc<A, SIZE> where
    A: Unpin

impl<const SIZE: usize, A> UnwindSafe for ChunkAlloc<A, SIZE> where
    A: UnwindSafe

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.