pub struct MotionSequenceSample<K> { /* private fields */ }Expand description
Sample for a full motion sequence.
Implementations§
Source§impl<K> MotionSequenceSample<K>
impl<K> MotionSequenceSample<K>
Sourcepub fn new(
steps: Vec<MotionSequenceStepSample<K>>,
frame_demand: MotionFrameDemand,
) -> Self
pub fn new( steps: Vec<MotionSequenceStepSample<K>>, frame_demand: MotionFrameDemand, ) -> Self
Creates a sequence sample.
Sourcepub fn steps(&self) -> &[MotionSequenceStepSample<K>]
pub fn steps(&self) -> &[MotionSequenceStepSample<K>]
Returns sampled steps in sequence insertion order.
Sourcepub const fn frame_demand(&self) -> MotionFrameDemand
pub const fn frame_demand(&self) -> MotionFrameDemand
Returns the aggregated frame demand for this sample.
Source§impl<K: PartialEq> MotionSequenceSample<K>
impl<K: PartialEq> MotionSequenceSample<K>
Sourcepub fn step(&self, key: &K) -> Option<&MotionSequenceStepSample<K>>
pub fn step(&self, key: &K) -> Option<&MotionSequenceStepSample<K>>
Returns the sample for a key.
Trait Implementations§
Source§impl<K: Clone> Clone for MotionSequenceSample<K>
impl<K: Clone> Clone for MotionSequenceSample<K>
Source§impl<K: Debug> Debug for MotionSequenceSample<K>
impl<K: Debug> Debug for MotionSequenceSample<K>
Source§impl<K: PartialEq> PartialEq for MotionSequenceSample<K>
impl<K: PartialEq> PartialEq for MotionSequenceSample<K>
impl<K: PartialEq> StructuralPartialEq for MotionSequenceSample<K>
Auto Trait Implementations§
impl<K> Freeze for MotionSequenceSample<K>
impl<K> RefUnwindSafe for MotionSequenceSample<K>
impl<K> Send for MotionSequenceSample<K>
impl<K> Sync for MotionSequenceSample<K>
impl<K> Unpin for MotionSequenceSample<K>
impl<K> UnsafeUnpin for MotionSequenceSample<K>
impl<K> UnwindSafe for MotionSequenceSample<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