Skip to main content

TweenConstructor

Type Alias TweenConstructor 

Source
pub type TweenConstructor<W> = fn(&mut App, &<W as TweenSlot>::Value) -> W;
Expand description

Signature for a TweenSlot factory.

This is the type of one of the arguments of TweenVisitor, the signature used by ImplicitlyAnimatedWidgetState::for_each_tween.

Instances of this function are expected to take a value and return a tween beginning at that value.