Struct ra_ap_profile::Count[][src]

pub struct Count<T> { /* fields omitted */ }

Include _c: Count<Self> field in important structs to count them.

To view the counts, run with RA_COUNT=1. The overhead of disabled count is almost zero. Store this inside your struct as _c: countme::Count<Self>.

Implementations

impl<T> Count<T>[src]

Include _c: Count<Self> field in important structs to count them.

To view the counts, run with RA_COUNT=1. The overhead of disabled count is almost zero.

pub fn new() -> Count<T>[src]

Create new Count, incrementing the corresponding count.

Trait Implementations

impl<T> Clone for Count<T>[src]

impl<T> Debug for Count<T> where
    T: Debug
[src]

impl<T> Default for Count<T>[src]

impl<T> Drop for Count<T>[src]

impl<T> Eq for Count<T> where
    T: Eq
[src]

impl<T> Hash for Count<T> where
    T: Hash
[src]

impl<T> Ord for Count<T> where
    T: Ord
[src]

impl<T> PartialEq<Count<T>> for Count<T> where
    T: PartialEq<T>, 
[src]

impl<T> PartialOrd<Count<T>> for Count<T> where
    T: PartialOrd<T>, 
[src]

impl<T> StructuralEq for Count<T>[src]

impl<T> StructuralPartialEq for Count<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Count<T>

impl<T> Send for Count<T>

impl<T> Sync for Count<T>

impl<T> Unpin for Count<T>

impl<T> UnwindSafe for Count<T>

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.