pub enum DhatMetrics {
Default,
All,
SingleMetric(DhatMetric),
}Available on crate feature
api only.Expand description
A collection of groups of DhatMetrics
The members of each group are fully documented in the docs of each variant of this enum
Variants§
Default
The default group in this order
use iai_callgrind::{DhatMetric, DhatMetrics};
let metrics: Vec<DhatMetrics> = vec![
DhatMetric::TotalUnits.into(),
DhatMetric::TotalEvents.into(),
DhatMetric::TotalBytes.into(),
DhatMetric::TotalBlocks.into(),
DhatMetric::AtTGmaxBytes.into(),
DhatMetric::AtTGmaxBlocks.into(),
DhatMetric::AtTEndBytes.into(),
DhatMetric::AtTEndBlocks.into(),
DhatMetric::ReadsBytes.into(),
DhatMetric::WritesBytes.into(),
];All
All DhatMetrics in this order
use iai_callgrind::{DhatMetric, DhatMetrics};
let metrics: Vec<DhatMetrics> = vec![
DhatMetrics::Default,
DhatMetric::TotalLifetimes.into(),
DhatMetric::MaximumBytes.into(),
DhatMetric::MaximumBlocks.into(),
];SingleMetric(DhatMetric)
A single DhatMetric
use iai_callgrind::{DhatMetric, DhatMetrics};
assert_eq!(
DhatMetrics::SingleMetric(DhatMetric::TotalBytes),
DhatMetric::TotalBytes.into()
);Trait Implementations§
Source§impl Clone for DhatMetrics
impl Clone for DhatMetrics
Source§fn clone(&self) -> DhatMetrics
fn clone(&self) -> DhatMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DhatMetrics
impl Debug for DhatMetrics
Source§impl Default for DhatMetrics
impl Default for DhatMetrics
Source§fn default() -> DhatMetrics
fn default() -> DhatMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DhatMetrics
impl<'de> Deserialize<'de> for DhatMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DhatMetric> for DhatMetrics
impl From<DhatMetric> for DhatMetrics
Source§fn from(value: DhatMetric) -> Self
fn from(value: DhatMetric) -> Self
Converts to this type from the input type.
Source§impl From<DhatMetrics> for IndexSet<DhatMetric>
Available on crate feature runner only.
impl From<DhatMetrics> for IndexSet<DhatMetric>
Available on crate feature
runner only.Source§fn from(value: DhatMetrics) -> Self
fn from(value: DhatMetrics) -> Self
Converts to this type from the input type.
Source§impl FromStr for DhatMetrics
Available on crate feature runner only.
impl FromStr for DhatMetrics
Available on crate feature
runner only.Source§impl PartialEq for DhatMetrics
impl PartialEq for DhatMetrics
Source§impl Serialize for DhatMetrics
impl Serialize for DhatMetrics
impl Copy for DhatMetrics
impl Eq for DhatMetrics
impl StructuralPartialEq for DhatMetrics
Auto Trait Implementations§
impl Freeze for DhatMetrics
impl RefUnwindSafe for DhatMetrics
impl Send for DhatMetrics
impl Sync for DhatMetrics
impl Unpin for DhatMetrics
impl UnwindSafe for DhatMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more