pub fn new(
        initial: T,
        transition_duration: std::time::Duration,
        easing_fn: impl Fn(f32) -> f32 + 'static,
    ) -> Self {
        Self(Rc::new(RefCell::new(TweenedInner {
            signal: Signal::new(initial),
            current_task: None,
            transition_duration_ms: transition_duration.as_millis() as f32,
            easing_fn: Rc::new(easing_fn),
        })))
    }
/// Create a new tweened state with the given value.
Create a new tweened state with the given value.
Create a new tweened state with the given value .
pub fn new(
        initial: T,
        transition_duration: std::time::Duration,
        easing_fn: impl Fn(f32) -> f32 + 'static,
    ) -> Self {
        Self(Rc::new(RefCell::new(TweenedInner {
            signal: Signal::new(initial),
            current_task: None,
            transition_duration_ms: transition_duration.as_millis() as f32,
            easing_fn: Rc::new(easing_fn),
        })))
    }
pub fn new ( initial : T , transition_duration : std :: time :: Duration , easing_fn : impl Fn ( f32 ) -> f32 + ' static , ) -> Self { Self ( Rc :: new ( RefCell :: new ( TweenedInner { signal : Signal :: new ( initial ) , current_task : None , transition_duration_ms : transition_duration . as_millis ( ) as f32 , easing_fn : Rc :: new ( easing_fn ) , } ) ) ) }
Create a new tweened state with the given value.
Create a new tweened state with the given value .
initial
T
transition_duration
std::time::Duration
easing_fn
impl Fn(f32) -> f32 + 'static