pub struct HistogramParams {
pub count: u64,
pub sum: f64,
pub min: f64,
pub max: f64,
pub buckets: Vec<(f64, u64)>,
}Expand description
Histogram data for encoding.
Fields§
§count: u64§sum: f64§min: f64§max: f64§buckets: Vec<(f64, u64)>Bucket boundaries and cumulative counts, sorted by upper_bound.
Use f64::INFINITY for the final catch-all bucket.
Trait Implementations§
Source§impl Clone for HistogramParams
impl Clone for HistogramParams
Source§fn clone(&self) -> HistogramParams
fn clone(&self) -> HistogramParams
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 moreAuto Trait Implementations§
impl Freeze for HistogramParams
impl RefUnwindSafe for HistogramParams
impl Send for HistogramParams
impl Sync for HistogramParams
impl Unpin for HistogramParams
impl UnsafeUnpin for HistogramParams
impl UnwindSafe for HistogramParams
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