[][src]Trait timescale::ToTimescale

pub trait ToTimescale {
    type Timescale: Serialize;
    fn with_time(self, time: f64) -> Self::Timescale;
}

Trait to allow data points to be expanded into their timescaled and serializable counterpart by appending the time

This trait is useful for writing timescale data loggers

Associated Types

type Timescale: Serialize

The timescale data that will be produced

Loading content...

Required methods

fn with_time(self, time: f64) -> Self::Timescale

Create the equivalent timescaled data point by appending the time to this data point

Loading content...

Implementors

Loading content...