[][src]Enum timescale::InterpolatedDataPoint

pub enum InterpolatedDataPoint<Datapoint, Time> {
    Interpolation {
        prev: Datapoint,
        next: Datapoint,
        percent: Time,
    },
    Saturation(Datapoint),
}

A constant datapoint that could be interpolated or saturated

Variants

Interpolation

A datapoint that needs to be interpolated

Fields of Interpolation

prev: Datapoint

The previous datapoint

next: Datapoint

The next datapoint

percent: Time

The percent that this datapoint is between the two datapoints.

This is 0 if this datapoint is on the prev datapoint and 1 if this datapoint is on the next datapoint

Saturation(Datapoint)

A datapoint that is outside of the input domain and is saturated at the last given value

Auto Trait Implementations

impl<Datapoint, Time> RefUnwindSafe for InterpolatedDataPoint<Datapoint, Time> where
    Datapoint: RefUnwindSafe,
    Time: RefUnwindSafe

impl<Datapoint, Time> Send for InterpolatedDataPoint<Datapoint, Time> where
    Datapoint: Send,
    Time: Send

impl<Datapoint, Time> Sync for InterpolatedDataPoint<Datapoint, Time> where
    Datapoint: Sync,
    Time: Sync

impl<Datapoint, Time> Unpin for InterpolatedDataPoint<Datapoint, Time> where
    Datapoint: Unpin,
    Time: Unpin

impl<Datapoint, Time> UnwindSafe for InterpolatedDataPoint<Datapoint, Time> where
    Datapoint: UnwindSafe,
    Time: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.