TransitionObservableBase
struct · ferroui-base · v0.5.0
struct TransitionObservableBase<T: 'static, F: Fn(f64) -> T + 'static>
Provides the base for observables implementing transitions: eases the progress and produces the value for it.
Members
new
fn new(progress: Rc<dyn IObservable<f64>>, easing: Easing, produce_value: F) -> Rc<Self>
Creates the observable. produce_value produces the value at the
given eased progress.
progress
fn progress(self: &Self) -> &Rc<dyn IObservable<f64>>
The progress the transition is driven by.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnySubscribeGuard<T>ErasedDestructorIntoEitherIObservable<T>IDisposableIObserver<f64>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.