pub struct MetricView<'a, T> { /* private fields */ }Implementations§
Source§impl<'a, T> MetricView<'a, T>
impl<'a, T> MetricView<'a, T>
pub fn name(&self) -> &str
pub fn count(&self) -> u32
pub fn last(&self) -> T
pub fn sum(&self) -> T
pub fn mean(&self) -> T
pub fn var(&self) -> T
pub fn stddev(&self) -> T
pub fn skewness(&self) -> T
pub fn kurtosis(&self) -> T
pub fn min(&self) -> T
pub fn max(&self) -> T
pub fn quantile(&self, q: f32) -> Option<T>
pub fn quantiles(&self, quantiles: &[f32]) -> Option<Vec<T>>
pub fn samples(&self) -> Option<&[f32]>
Auto Trait Implementations§
impl<'a, T> Freeze for MetricView<'a, T>
impl<'a, T> RefUnwindSafe for MetricView<'a, T>
impl<'a, T> Send for MetricView<'a, T>
impl<'a, T> Sync for MetricView<'a, T>
impl<'a, T> Unpin for MetricView<'a, T>
impl<'a, T> UnsafeUnpin for MetricView<'a, T>
impl<'a, T> UnwindSafe for MetricView<'a, T>
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