pub struct MotionScalarControllerSample<K> { /* private fields */ }Expand description
A grouped controller sample.
Implementations§
Source§impl<K> MotionScalarControllerSample<K>
impl<K> MotionScalarControllerSample<K>
Sourcepub fn new(
tracks: Vec<MotionScalarTrackSample<K>>,
frame_demand: MotionFrameDemand,
) -> Self
pub fn new( tracks: Vec<MotionScalarTrackSample<K>>, frame_demand: MotionFrameDemand, ) -> Self
Creates a grouped sample.
Sourcepub fn tracks(&self) -> &[MotionScalarTrackSample<K>]
pub fn tracks(&self) -> &[MotionScalarTrackSample<K>]
Returns sampled tracks in controller order.
Sourcepub const fn frame_demand(&self) -> MotionFrameDemand
pub const fn frame_demand(&self) -> MotionFrameDemand
Returns the grouped frame demand.
Source§impl<K: PartialEq> MotionScalarControllerSample<K>
impl<K: PartialEq> MotionScalarControllerSample<K>
Sourcepub fn track(&self, key: &K) -> Option<&MotionScalarTrackSample<K>>
pub fn track(&self, key: &K) -> Option<&MotionScalarTrackSample<K>>
Returns the sample for a key.
Trait Implementations§
Source§impl<K: Clone> Clone for MotionScalarControllerSample<K>
impl<K: Clone> Clone for MotionScalarControllerSample<K>
Source§impl<K: Debug> Debug for MotionScalarControllerSample<K>
impl<K: Debug> Debug for MotionScalarControllerSample<K>
Source§impl<K: PartialEq> PartialEq for MotionScalarControllerSample<K>
impl<K: PartialEq> PartialEq for MotionScalarControllerSample<K>
impl<K: PartialEq> StructuralPartialEq for MotionScalarControllerSample<K>
Auto Trait Implementations§
impl<K> Freeze for MotionScalarControllerSample<K>
impl<K> RefUnwindSafe for MotionScalarControllerSample<K>
impl<K> Send for MotionScalarControllerSample<K>
impl<K> Sync for MotionScalarControllerSample<K>
impl<K> Unpin for MotionScalarControllerSample<K>
impl<K> UnsafeUnpin for MotionScalarControllerSample<K>
impl<K> UnwindSafe for MotionScalarControllerSample<K>
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