pub struct TweenTransition {
pub inner: Transition,
pub ease: EaseFunction,
pub elapsed: f32,
pub duration: f32,
}
Expand description
A helper extended by transitions that tween between two states.
Fields
inner: Transition
ease: EaseFunction
elapsed: f32
duration: f32
Implementations
Trait Implementations
sourceimpl AsRef<Transition> for TweenTransition
impl AsRef<Transition> for TweenTransition
sourcefn as_ref(&self) -> &Transition
fn as_ref(&self) -> &Transition
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<TweenTransition> for FadeTransition
impl AsRef<TweenTransition> for FadeTransition
sourcefn as_ref(&self) -> &TweenTransition
fn as_ref(&self) -> &TweenTransition
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<TweenTransition> for SlideTransition
impl AsRef<TweenTransition> for SlideTransition
sourcefn as_ref(&self) -> &TweenTransition
fn as_ref(&self) -> &TweenTransition
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations
impl !RefUnwindSafe for TweenTransition
impl !Send for TweenTransition
impl !Sync for TweenTransition
impl Unpin for TweenTransition
impl !UnwindSafe for TweenTransition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.