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.
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§
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<A> AnimationExt for Awhere
A: Placeable,
impl<A> AnimationExt for Awhere
A: Placeable,
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.
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§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.