pub struct DataSamples {
pub interpolation: DataInterpolation,
pub channels: Vec<String>,
pub times: Vec<MediaTime>,
pub values: Vec<Option<f32>>,
}Expand description
Samples on one time grid, stored by column.
values holds times.len() * channels * arity numbers: sample after sample, channel after
channel within a sample, components within a channel. None marks a channel lost at that
sample, and covers all of its components.
Fields§
§interpolation: DataInterpolationHow the values read between samples.
channels: Vec<String>Channel names, unique; empty for similarity.
times: Vec<MediaTime>Sample times in ticks on the anchor’s clock, strictly ascending.
values: Vec<Option<f32>>The values, as described on the type.
Implementations§
Trait Implementations§
Source§impl Clone for DataSamples
impl Clone for DataSamples
Source§impl Debug for DataSamples
impl Debug for DataSamples
Source§impl Default for DataSamples
impl Default for DataSamples
Source§impl PartialEq for DataSamples
impl PartialEq for DataSamples
impl StructuralPartialEq for DataSamples
Auto Trait Implementations§
impl Forget for DataSamples
impl Freeze for DataSampleswhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<MediaTime>: Freeze,
PhantomData<Option<f32>>: Freeze,
impl Move for DataSamples
impl RefUnwindSafe for DataSamples
impl Send for DataSampleswhere
RawVecInner: Send,
impl Sync for DataSampleswhere
RawVecInner: Sync,
impl Unpin for DataSamples
impl UnsafeUnpin for DataSampleswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<MediaTime>: UnsafeUnpin,
PhantomData<Option<f32>>: UnsafeUnpin,
impl UnwindSafe for DataSampleswhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more