Struct slog_extlog::stats::Buckets[][src]

pub struct Buckets {
    pub method: BucketMethod,
    pub label_name: &'static str,
    // some fields omitted
}

A set of numerical buckets together with a method for sorting values into them.

Fields

The method to use to sort values into buckets.

Label name describing what the buckets measure.

Methods

impl Buckets
[src]

Create a new Buckets instance.

Important traits for Vec<u8>

return a vector containing the indices of the buckets that should be updated

The number of buckets.

Whether or not the number of buckets is greater than zero.

Get the bound of an individual bucket by index.

Trait Implementations

impl Debug for Buckets
[src]

Formats the value using the given formatter. Read more

impl Clone for Buckets
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Buckets
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Buckets

impl Sync for Buckets