pub struct TransitionContext<S, T> {
pub from_state: S,
pub to_state: S,
pub from: T,
pub to: T,
}Expand description
Owned values supplied to a MotionBinding transition factory.
from is always the motion’s current sampled value, not the target
associated with from_state. This keeps interrupted transitions visually
continuous.
Fields§
§from_state: SBusiness state that was active before this transition.
to_state: SBusiness state being applied.
from: TCurrent sampled motion value.
to: TTarget value associated with to_state.
Implementations§
Source§impl<S, T: Animatable> TransitionContext<S, T>
impl<S, T: Animatable> TransitionContext<S, T>
Trait Implementations§
Auto Trait Implementations§
impl<S, T> Freeze for TransitionContext<S, T>
impl<S, T> RefUnwindSafe for TransitionContext<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for TransitionContext<S, T>
impl<S, T> Sync for TransitionContext<S, T>
impl<S, T> Unpin for TransitionContext<S, T>
impl<S, T> UnsafeUnpin for TransitionContext<S, T>where
S: UnsafeUnpin,
T: UnsafeUnpin,
impl<S, T> UnwindSafe for TransitionContext<S, T>where
S: UnwindSafe,
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