pub struct SequenceSample<T> { /* private fields */ }Expand description
What a Sequence reports for the current frame.
Implementations§
Source§impl<T> SequenceSample<T>
impl<T> SequenceSample<T>
pub fn into_value(self) -> T
Sourcepub fn step(&self) -> usize
pub fn step(&self) -> usize
The index of the step being played. A finished sequence reports its
last step; an empty one reports 0.
Sourcepub fn status(&self) -> MotionStatus
pub fn status(&self) -> MotionStatus
The status of the step being played. Finished is reported only once
the last step has completed: a step that hands over to the next one
reports that next step’s Delayed or Running instead.
pub fn is_finished(&self) -> bool
Trait Implementations§
Source§impl<T: Clone> Clone for SequenceSample<T>
impl<T: Clone> Clone for SequenceSample<T>
Source§fn clone(&self) -> SequenceSample<T>
fn clone(&self) -> SequenceSample<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy> Copy for SequenceSample<T>
Source§impl<T: Debug> Debug for SequenceSample<T>
impl<T: Debug> Debug for SequenceSample<T>
Source§impl<T: PartialEq> PartialEq for SequenceSample<T>
impl<T: PartialEq> PartialEq for SequenceSample<T>
impl<T: PartialEq> StructuralPartialEq for SequenceSample<T>
Auto Trait Implementations§
impl<T> Freeze for SequenceSample<T>where
T: Freeze,
impl<T> RefUnwindSafe for SequenceSample<T>where
T: RefUnwindSafe,
impl<T> Send for SequenceSample<T>where
T: Send,
impl<T> Sync for SequenceSample<T>where
T: Sync,
impl<T> Unpin for SequenceSample<T>where
T: Unpin,
impl<T> UnsafeUnpin for SequenceSample<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SequenceSample<T>where
T: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more