Struct calcify::Bin

source · []
pub struct Bin {
    pub in_edge: f64,
    pub ex_edge: f64,
    pub count: u64,
}
Expand description

A histogram is a Collection of Bins

Fields

in_edge: f64ex_edge: f64count: u64

Implementations

Returns new Bin

Arguments
  • in_edge - f64 Inclusive Edge
  • ex_edge - f64 Exclusive Edge
  • count - u64 Bin value

Trait Implementations

Increment Bin count.

Example
use calcify::Bin;
let mut test_bin = Bin::new(0.0,1.0,10);
test_bin += 1;

assert_eq!(test_bin.count, 11);

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Return Self from string

Return a tuple of Self and a &u8 of remaining unparsed bytes from a byte array

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

This method tests for !=.

Return object intensive json string Read more

Return Result wrapped Vec in MsgPack Format is not like to_json it is array intensive not object Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.