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>
impl<T> AnimatedDataOps for TimeDataMap<T>
Source§impl From<(Tick, BooleanVec)> for TimeDataMap<BooleanVec>
impl From<(Tick, BooleanVec)> for TimeDataMap<BooleanVec>
Source§fn from((time, value): (Time, BooleanVec)) -> Self
fn from((time, value): (Time, BooleanVec)) -> Self
Converts to this type from the input type.
Source§impl From<(Tick, ColorCurve)> for TimeDataMap<ColorCurve>
impl From<(Tick, ColorCurve)> for TimeDataMap<ColorCurve>
Source§fn from((time, value): (Time, ColorCurve)) -> Self
fn from((time, value): (Time, ColorCurve)) -> Self
Converts to this type from the input type.
Source§impl From<(Tick, IntegerVec)> for TimeDataMap<IntegerVec>
impl From<(Tick, IntegerVec)> for TimeDataMap<IntegerVec>
Source§fn from((time, value): (Time, IntegerVec)) -> Self
fn from((time, value): (Time, IntegerVec)) -> Self
Converts to this type from the input type.
Source§impl From<(Tick, Matrix3Vec)> for TimeDataMap<Matrix3Vec>
impl From<(Tick, Matrix3Vec)> for TimeDataMap<Matrix3Vec>
Source§fn from((time, value): (Time, Matrix3Vec)) -> Self
fn from((time, value): (Time, Matrix3Vec)) -> Self
Converts to this type from the input type.
Source§impl From<(Tick, Vector2Vec)> for TimeDataMap<Vector2Vec>
impl From<(Tick, Vector2Vec)> for TimeDataMap<Vector2Vec>
Source§fn from((time, value): (Time, Vector2Vec)) -> Self
fn from((time, value): (Time, Vector2Vec)) -> Self
Converts to this type from the input type.
Source§impl Sample<Color> for TimeDataMap<Color>
impl Sample<Color> for TimeDataMap<Color>
Source§fn sample(
&self,
shutter: &Shutter,
samples: NonZeroU16,
) -> Result<Vec<(Color, SampleWeight)>>
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>
impl Sample<Integer> for TimeDataMap<Integer>
Source§fn sample(
&self,
shutter: &Shutter,
samples: NonZeroU16,
) -> Result<Vec<(Integer, SampleWeight)>>
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.
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)>>
fn sample( &self, shutter: &Shutter, samples: NonZeroU16, ) -> Result<Vec<(Matrix3, SampleWeight)>>
Generate samples across the shutter interval. Read more