pub struct HistogramState {
pub buckets: Vec<HistogramBucket>,
pub min_value: f64,
pub max_value: f64,
pub total_count: u64,
pub sum: f64,
pub sum_squared: f64,
}Expand description
State for the histogram analyzer.
Fields§
§buckets: Vec<HistogramBucket>The histogram buckets.
min_value: f64Minimum value in the dataset.
max_value: f64Maximum value in the dataset.
total_count: u64Total count of non-null values.
sum: f64Sum of all values (for mean calculation).
sum_squared: f64Sum of squared values (for std dev calculation).
Implementations§
Trait Implementations§
Source§impl AnalyzerState for HistogramState
impl AnalyzerState for HistogramState
Source§impl Clone for HistogramState
impl Clone for HistogramState
Source§fn clone(&self) -> HistogramState
fn clone(&self) -> HistogramState
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 HistogramState
impl Debug for HistogramState
Source§impl<'de> Deserialize<'de> for HistogramState
impl<'de> Deserialize<'de> for HistogramState
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
Auto Trait Implementations§
impl Freeze for HistogramState
impl RefUnwindSafe for HistogramState
impl Send for HistogramState
impl Sync for HistogramState
impl Unpin for HistogramState
impl UnwindSafe for HistogramState
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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