pub struct Paramed<A> {
inner: A,
param: AnimationParam,
}Expand description
An animation definition with overridden playback parameters.
Fields§
§inner: A§param: AnimationParamImplementations§
Source§impl<A> Paramed<A>
impl<A> Paramed<A>
Sourcepub fn with_rate_func(self, rate_func: fn(f64) -> f64) -> Self
pub fn with_rate_func(self, rate_func: fn(f64) -> f64) -> Self
Change the animation’s rate function.
Sourcepub fn with_duration(self, duration_secs: f64) -> Self
pub fn with_duration(self, duration_secs: f64) -> Self
Change the animation’s duration.
For a Sound this resamples the
audio linearly: playing a clip faster also shifts its pitch up, since
the whole content span is warped onto the new window.
Sourcepub fn with_enabled(self, enabled: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
Enable or disable this animation’s output.
Trait Implementations§
Source§impl<A: Unplaced + 'static> IntoAnimNode for Paramed<A>
impl<A: Unplaced + 'static> IntoAnimNode for Paramed<A>
Source§fn into_anim_node(self) -> AnimNode
fn into_anim_node(self) -> AnimNode
Lower this definition into its local runtime representation.
Auto Trait Implementations§
impl<A> Freeze for Paramed<A>where
A: Freeze,
impl<A> RefUnwindSafe for Paramed<A>where
A: RefUnwindSafe,
impl<A> Send for Paramed<A>where
A: Send,
impl<A> Sync for Paramed<A>where
A: Sync,
impl<A> Unpin for Paramed<A>where
A: Unpin,
impl<A> UnsafeUnpin for Paramed<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for Paramed<A>where
A: 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<T> ConditionalSend for Twhere
T: Send,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<A> PlaybackExt for Awhere
A: Unplaced,
impl<A> PlaybackExt for Awhere
A: Unplaced,
Source§fn with_rate_func(self, rate_func: fn(f64) -> f64) -> Paramed<Self>
fn with_rate_func(self, rate_func: fn(f64) -> f64) -> Paramed<Self>
Change the animation’s rate function.
Source§fn with_duration(self, duration_secs: f64) -> Paramed<Self>
fn with_duration(self, duration_secs: f64) -> Paramed<Self>
Change the animation’s duration.
Source§fn with_enabled(self, enabled: bool) -> Paramed<Self>
fn with_enabled(self, enabled: bool) -> Paramed<Self>
Enable or disable this animation’s output.
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> TransformedExt for T
impl<T> TransformedExt for T
Source§fn transformed<G>(self, transform: G) -> Transformed<Self, G>
fn transformed<G>(self, transform: G) -> Transformed<Self, G>
Return
self wrapped with transform stored exactly as G.