pub struct Tween<T> {
pub begin: Option<T>,
pub end: Option<T>,
}Expand description
A linear interpolation between a beginning and ending value.
Tweens are mutable: set_begin / set_end after Animatable::animate
is visible to the driven animation, as in Dart.
Fields§
§begin: Option<T>The value this variable has at the beginning of the animation.
end: Option<T>The value this variable has at the end of the animation.
Implementations§
Source§impl<T> Tween<T>where
T: 'static,
impl<T> Tween<T>where
T: 'static,
Sourcepub fn begin(self: Handle<Tween<T>>, app: &App) -> Option<&T>
pub fn begin(self: Handle<Tween<T>>, app: &App) -> Option<&T>
The value this variable has at the beginning of the animation.
Trait Implementations§
Auto Trait Implementations§
impl<T> Forget for Tween<T>
impl<T> Freeze for Tween<T>where
T: Freeze,
impl<T> Move for Tween<T>
impl<T> RefUnwindSafe for Tween<T>where
T: RefUnwindSafe,
impl<T> Send for Tween<T>where
T: Send,
impl<T> Sync for Tween<T>where
T: Sync,
impl<T> Unpin for Tween<T>where
T: Unpin,
impl<T> UnsafeUnpin for Tween<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Tween<T>where
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