pub struct ExprSequencer { /* private fields */ }Expand description
Combines multiple ExprTracks and evaluates them additively.
Implementations§
Source§impl ExprSequencer
impl ExprSequencer
Sourcepub fn track_count(&self) -> usize
pub fn track_count(&self) -> usize
Number of tracks currently registered.
Sourcepub fn evaluate_all(&self, t: f32) -> ExprWeights
pub fn evaluate_all(&self, t: f32) -> ExprWeights
Evaluate all tracks at time t and blend additively.
When the same expression key appears in multiple tracks the weights are summed and then clamped to [0, 1].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExprSequencer
impl RefUnwindSafe for ExprSequencer
impl Send for ExprSequencer
impl Sync for ExprSequencer
impl Unpin for ExprSequencer
impl UnsafeUnpin for ExprSequencer
impl UnwindSafe for ExprSequencer
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
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