pub enum DhatMetrics {
Default,
All,
SingleMetric(DhatMetric),
}
Available on crate feature
default
only.Expand description
A collection of groups of DhatMetric
s
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 DhatMetric
s 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<DhatMetrics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DhatMetrics, <__D as Deserializer<'de>>::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) -> DhatMetrics
fn from(value: DhatMetric) -> DhatMetrics
Converts to this type from the input type.
Source§impl PartialEq for DhatMetrics
impl PartialEq for DhatMetrics
Source§impl Serialize for DhatMetrics
impl Serialize for DhatMetrics
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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