[][src]Struct gharial::TestAlloc

pub struct TestAlloc<A> where
    A: GlobalAlloc
{ /* fields omitted */ }

TestAlloc is a implementation for GlobalAlloc to test memory leak and so on.

It is a wrapper of another GlobalAlloc , and delegates the requests to the inner after testing.

The checks are followings.

See also GAlloc . It is an alias to TestAlloc<std::alloc::System> .

Trait Implementations

impl<A> Clone for TestAlloc<A> where
    A: GlobalAlloc + Clone
[src]

impl<A> Debug for TestAlloc<A> where
    A: GlobalAlloc + Debug
[src]

impl<A> Default for TestAlloc<A> where
    A: GlobalAlloc + Default
[src]

impl<A> Drop for TestAlloc<A> where
    A: GlobalAlloc
[src]

impl<A> From<A> for TestAlloc<A> where
    A: GlobalAlloc
[src]

impl<A> GlobalAlloc for TestAlloc<A> where
    A: GlobalAlloc
[src]

impl<A> Send for TestAlloc<A> where
    A: GlobalAlloc + Send
[src]

impl<A> Sync for TestAlloc<A> where
    A: GlobalAlloc + Send + Sync
[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for TestAlloc<A> where
    A: RefUnwindSafe

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

impl<A> UnwindSafe for TestAlloc<A> 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<!> for T[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]