Skip to main content

Sample

Trait Sample 

Source
pub trait Sample: Copy {
    // Required methods
    fn time(&self) -> Timestamp;
    fn extent(&self) -> (f64, f64);
}
Expand description

Anything a Series can hold: it has a time and a value extent.

Required Methods§

Source

fn time(&self) -> Timestamp

When the sample happened.

Source

fn extent(&self) -> (f64, f64)

The lowest and highest value it covers.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§