Skip to main content

TimeDataMap

Type Alias TimeDataMap 

Source
pub type TimeDataMap<V> = KeyDataMap<Time, V>;
Expand description

A time-keyed data map. Alias for KeyDataMap<Time, V>.

Aliased Type§

pub struct TimeDataMap<V> {
    pub values: NonEmpty<BTreeMap<Tick, V>>,
}

Fields§

§values: NonEmpty<BTreeMap<Tick, V>>

The key-value pairs with optional interpolation keys.

Guaranteed non-empty by BTreeMap1.

Trait Implementations§

Source§

impl<T> AnimatedDataOps for TimeDataMap<T>

Source§

fn len(&self) -> usize

Returns the number of time samples.
Source§

fn is_empty(&self) -> bool

Returns true if there are no time samples.
Source§

fn is_animated(&self) -> bool

Returns true if there is more than one time sample.
Source§

impl From<(Tick, Boolean)> for TimeDataMap<Boolean>

Source§

fn from((time, value): (Time, Boolean)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, BooleanVec)> for TimeDataMap<BooleanVec>

Source§

fn from((time, value): (Time, BooleanVec)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, Color)> for TimeDataMap<Color>

Source§

fn from((time, value): (Time, Color)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, ColorCurve)> for TimeDataMap<ColorCurve>

Source§

fn from((time, value): (Time, ColorCurve)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, ColorVec)> for TimeDataMap<ColorVec>

Source§

fn from((time, value): (Time, ColorVec)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, Data)> for TimeDataMap<Data>

Source§

fn from((time, value): (Time, Data)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, Integer)> for TimeDataMap<Integer>

Source§

fn from((time, value): (Time, Integer)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, IntegerVec)> for TimeDataMap<IntegerVec>

Source§

fn from((time, value): (Time, IntegerVec)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, Matrix3)> for TimeDataMap<Matrix3>

Source§

fn from((time, value): (Time, Matrix3)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, Matrix3Vec)> for TimeDataMap<Matrix3Vec>

Source§

fn from((time, value): (Time, Matrix3Vec)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, Real)> for TimeDataMap<Real>

Source§

fn from((time, value): (Time, Real)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, RealCurve)> for TimeDataMap<RealCurve>

Source§

fn from((time, value): (Time, RealCurve)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, RealVec)> for TimeDataMap<RealVec>

Source§

fn from((time, value): (Time, RealVec)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, String)> for TimeDataMap<String>

Source§

fn from((time, value): (Time, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, StringVec)> for TimeDataMap<StringVec>

Source§

fn from((time, value): (Time, StringVec)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, Vector2)> for TimeDataMap<Vector2>

Source§

fn from((time, value): (Time, Vector2)) -> Self

Converts to this type from the input type.
Source§

impl From<(Tick, Vector2Vec)> for TimeDataMap<Vector2Vec>

Source§

fn from((time, value): (Time, Vector2Vec)) -> Self

Converts to this type from the input type.
Source§

impl Sample<Color> for TimeDataMap<Color>

Source§

fn sample( &self, shutter: &Shutter, samples: NonZeroU16, ) -> Result<Vec<(Color, SampleWeight)>>

Generate samples across the shutter interval. Read more
Source§

impl Sample<Integer> for TimeDataMap<Integer>

Source§

fn sample( &self, shutter: &Shutter, samples: NonZeroU16, ) -> Result<Vec<(Integer, SampleWeight)>>

Generate samples across the shutter interval. Read more
Source§

impl Sample<Matrix3> for TimeDataMap<Matrix3>

Available on crate features builtin-types and matrix3 only.
Source§

fn sample( &self, shutter: &Shutter, samples: NonZeroU16, ) -> Result<Vec<(Matrix3, SampleWeight)>>

Generate samples across the shutter interval. Read more
Source§

impl Sample<Real> for TimeDataMap<Real>

Source§

fn sample( &self, shutter: &Shutter, samples: NonZeroU16, ) -> Result<Vec<(Real, SampleWeight)>>

Generate samples across the shutter interval. Read more
Source§

impl Sample<Vector2> for TimeDataMap<Vector2>

Source§

fn sample( &self, shutter: &Shutter, samples: NonZeroU16, ) -> Result<Vec<(Vector2, SampleWeight)>>

Generate samples across the shutter interval. Read more