fuchsia_inspect

Trait HistogramProperty

Source
pub trait HistogramProperty {
    type Type;

    // Required methods
    fn insert(&self, value: Self::Type);
    fn insert_multiple(&self, value: Self::Type, count: usize);
    fn clear(&self);
}
Expand description

Trait implemented by all histogram properties providing common operations.

Required Associated Types§

Source

type Type

The type of each value added to the histogram.

Required Methods§

Source

fn insert(&self, value: Self::Type)

Inserts the given value in the histogram.

Source

fn insert_multiple(&self, value: Self::Type, count: usize)

Inserts the given value in the histogram count times.

Source

fn clear(&self)

Clears all buckets of the histogram.

Implementors§