pub struct LogHistogram {
pub negative: [u64; 64],
pub positive: [u64; 64],
}Expand description
LogHistogram is the implementation type for the integer pseudo-log histogram.
Fields§
§negative: [u64; 64]§positive: [u64; 64]Implementations§
Source§impl LogHistogram
impl LogHistogram
pub fn new() -> LogHistogram
pub fn print(&self, printer: &mut dyn Printer)
pub fn equals(&self, other: &LogHistogram) -> bool
Trait Implementations§
Source§impl Clone for LogHistogram
impl Clone for LogHistogram
Source§fn clone(&self) -> LogHistogram
fn clone(&self) -> LogHistogram
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 Default for LogHistogram
impl Default for LogHistogram
Source§impl Histogram for LogHistogram
impl Histogram for LogHistogram
Source§fn print_histogram(&self, printer: &mut dyn Printer)
fn print_histogram(&self, printer: &mut dyn Printer)
Prints the histogram on the given Printer instance.
Source§fn clear_histogram(&mut self)
fn clear_histogram(&mut self)
Clears the histogram data.
Source§fn to_log_histogram(&self) -> Option<LogHistogramBox>
fn to_log_histogram(&self) -> Option<LogHistogramBox>
Returns the corresponding LogHistogramBox if possible.
Source§fn to_float_histogram(&self) -> Option<FloatHistogramBox>
fn to_float_histogram(&self) -> Option<FloatHistogramBox>
Returns the corresponding FloatHistogramBox if possible.
Auto Trait Implementations§
impl Freeze for LogHistogram
impl RefUnwindSafe for LogHistogram
impl Send for LogHistogram
impl Sync for LogHistogram
impl Unpin for LogHistogram
impl UnwindSafe for LogHistogram
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