[][src]Struct mockalloc::AllocInfo

pub struct AllocInfo { /* fields omitted */ }

Captures information about the allocations performed by a region under test.

Implementations

impl AllocInfo[src]

pub fn num_allocs(&self) -> u64[src]

Returns the total number of allocations performed.

pub fn num_frees(&self) -> u64[src]

Returns the total number of frees performed.

pub fn num_leaks(&self) -> u64[src]

Returns the total number of frees performed.

pub fn mem_allocated(&self) -> u64[src]

Returns the total amount of memory allocated.

pub fn mem_leaked(&self) -> u64[src]

Returns the total amount of memory leaked.

pub fn mem_freed(&self) -> u64[src]

Returns the total amount of memory leaked.

pub fn peak_mem(&self) -> u64[src]

Returns peak memory usage, not including any overhead used by the allocator.

pub fn peak_mem_allocs(&self) -> u64[src]

Returns the number of active allocations during peak memory usage.

pub fn result(&self) -> Result<(), AllocError>[src]

Returns an Err(..) result if any allocation bugs were detected.

pub fn tracing(&self) -> &TracingInfo[src]

Returns the detailed trace of leaks and errors.

Trait Implementations

impl Clone for AllocInfo[src]

impl Debug for AllocInfo[src]

Auto Trait Implementations

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.