Struct sycamore::motion::Tweened [−][src]
Expand description
A state that is interpolated when it is set.
Implementations
Create a new tweened state with the given value.
Set the target value for the Tweened
. The existing value will be interpolated to the
target value with the specified transition_duration
and easing_fn
.
If the value is being interpolated already due to a previous call to set()
, the previous
task will be canceled.
To immediately set the value without interpolating the value, use signal().set(...)
instead.
Alias for signal().get_untracked()
.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Tweened<T>
impl<T> !UnwindSafe for Tweened<T>
Blanket Implementations
Mutably borrows from an owned value. Read more