[−][src]Struct mockalloc::AllocInfo
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
Auto Trait Implementations
impl RefUnwindSafe for AllocInfo
impl !Send for AllocInfo
impl !Sync for AllocInfo
impl Unpin for AllocInfo
impl UnwindSafe for AllocInfo
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,