pub struct ValueConstantTween<T> {
pub value: T,
}Expand description
Dart’s ConstantTween<T> held as a value, for the tweens ValueTween is for.
Fields§
§value: TThe value at every point of the animation: Dart’s begin and end.
Implementations§
Source§impl<T> ValueConstantTween<T>
impl<T> ValueConstantTween<T>
Sourcepub const fn new(value: T) -> ValueConstantTween<T>
pub const fn new(value: T) -> ValueConstantTween<T>
Create a tween whose begin and end values equal value.
Trait Implementations§
Source§impl<T> Animatable<T> for ValueConstantTween<T>where
T: Clone,
impl<T> Animatable<T> for ValueConstantTween<T>where
T: Clone,
Source§fn transform(&self, _app: &App, t: f64) -> T
fn transform(&self, _app: &App, t: f64) -> T
Returns the value of the object at point
t. Read moreSource§fn evaluate(&self, app: &App, animation: AnyAnimation<f64>) -> Twhere
Self: Sized,
fn evaluate(&self, app: &App, animation: AnyAnimation<f64>) -> Twhere
Self: Sized,
The current value of this object for the given animation. Read more
Source§fn animate(
self,
app: &mut App,
parent: Retained<AnyAnimation<f64>>,
) -> Retained<AnyAnimation<T>>
fn animate( self, app: &mut App, parent: Retained<AnyAnimation<f64>>, ) -> Retained<AnyAnimation<T>>
Returns a new animation that is driven by the given animation but
that takes on values determined by this object. The new animation keeps
parent; whoever keeps the result keeps both.Source§fn chain<P>(self, parent: P) -> ChainedEvaluation<P, Self>
fn chain<P>(self, parent: P) -> ChainedEvaluation<P, Self>
Returns a new
Animatable whose value is determined by first
evaluating the given parent and then evaluating this object at the
result.Source§impl<T> Clone for ValueConstantTween<T>where
T: Clone,
impl<T> Clone for ValueConstantTween<T>where
T: Clone,
Source§fn clone(&self) -> ValueConstantTween<T>
fn clone(&self) -> ValueConstantTween<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T> Copy for ValueConstantTween<T>where
T: Copy,
Auto Trait Implementations§
impl<T> Forget for ValueConstantTween<T>
impl<T> Freeze for ValueConstantTween<T>where
T: Freeze,
impl<T> Move for ValueConstantTween<T>
impl<T> RefUnwindSafe for ValueConstantTween<T>where
T: RefUnwindSafe,
impl<T> Send for ValueConstantTween<T>where
T: Send,
impl<T> Sync for ValueConstantTween<T>where
T: Sync,
impl<T> Unpin for ValueConstantTween<T>where
T: Unpin,
impl<T> UnsafeUnpin for ValueConstantTween<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ValueConstantTween<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