[−][src]Struct alloc_compose::stats::Counter
A primitive counter for collectiong statistics.
Implementations
impl Counter
[src]
pub fn num_allocs(&self) -> u64
[src]
Returns the number of alloc
calls.
pub fn num_deallocs(&self) -> u64
[src]
Returns the number of dealloc
calls.
pub fn num_grows(&self) -> u64
[src]
Returns the number of grow
calls.
pub fn num_shrinks(&self) -> u64
[src]
Returns the number of shrink
calls.
pub fn num_owns(&self) -> u64
[src]
Returns the number of owns
calls.
Trait Implementations
impl CallbackRef for Counter
[src]
pub fn after_allocate(
&self,
_layout: Layout,
_result: Result<NonNull<[u8]>, AllocError>
)
[src]
&self,
_layout: Layout,
_result: Result<NonNull<[u8]>, AllocError>
)
pub fn after_allocate_zeroed(
&self,
_layout: Layout,
_result: Result<NonNull<[u8]>, AllocError>
)
[src]
&self,
_layout: Layout,
_result: Result<NonNull<[u8]>, AllocError>
)
pub fn after_allocate_all(&self, _result: Result<NonNull<[u8]>, AllocError>)
[src]
pub fn after_allocate_all_zeroed(
&self,
_result: Result<NonNull<[u8]>, AllocError>
)
[src]
&self,
_result: Result<NonNull<[u8]>, AllocError>
)
pub fn before_deallocate(&self, _ptr: NonNull<u8>, _layout: Layout)
[src]
pub fn before_deallocate_all(&self)
[src]
pub fn after_grow(
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
_result: Result<NonNull<[u8]>, AllocError>
)
[src]
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
_result: Result<NonNull<[u8]>, AllocError>
)
pub fn after_grow_zeroed(
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
_result: Result<NonNull<[u8]>, AllocError>
)
[src]
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
_result: Result<NonNull<[u8]>, AllocError>
)
pub fn after_grow_in_place(
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
_result: Result<usize, AllocError>
)
[src]
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
_result: Result<usize, AllocError>
)
pub fn after_grow_in_place_zeroed(
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
_result: Result<usize, AllocError>
)
[src]
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
_result: Result<usize, AllocError>
)
pub fn after_shrink(
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
_result: Result<NonNull<[u8]>, AllocError>
)
[src]
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
_result: Result<NonNull<[u8]>, AllocError>
)
pub fn after_shrink_in_place(
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
_result: Result<usize, AllocError>
)
[src]
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
_result: Result<usize, AllocError>
)
pub fn after_owns(&self, _success: bool)
[src]
pub fn before_allocate(&self, layout: Layout)
[src]
pub fn before_allocate_zeroed(&self, layout: Layout)
[src]
pub fn before_allocate_all(&self)
[src]
pub fn before_allocate_all_zeroed(&self)
[src]
pub fn after_deallocate(&self, ptr: NonNull<u8>, layout: Layout)
[src]
pub fn after_deallocate_all(&self)
[src]
pub fn before_grow(
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
[src]
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
pub fn before_grow_zeroed(
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
[src]
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
pub fn before_grow_in_place(
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
[src]
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
pub fn before_grow_in_place_zeroed(
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
[src]
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
pub fn before_shrink(
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
[src]
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
pub fn before_shrink_in_place(
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
[src]
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
pub fn before_owns(&self)
[src]
pub fn by_ref(&self) -> &Self
[src]
impl Debug for Counter
[src]
impl Default for Counter
[src]
impl Eq for Counter
[src]
impl PartialEq<AtomicCounter> for Counter
[src]
pub fn eq(&self, other: &AtomicCounter) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<Counter> for Counter
[src]
impl PartialEq<Counter> for AtomicCounter
[src]
pub fn eq(&self, other: &Counter) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Counter
[src]
impl StructuralPartialEq for Counter
[src]
Auto Trait Implementations
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, 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>,