ObservableAsPropertyInitialValue
enum · ferroui-reactiveui · v0.5.0
enum ObservableAsPropertyInitialValue<T>
The initial value of an ObservableAsPropertyHelper: a value, or a factory read when the
helper starts (upstream's T? initialValue and Func<T?> getInitialValue overloads).
Members
Value
Value(T)
The value itself.
Factory
Factory(std::rc::Rc<dyn Fn() -> T>)
A factory run when the helper starts, or on the first read of a deferred helper.
factory
fn factory(factory: impl Fn() -> T + 'static) -> Self
A factory of the initial value.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedCloneDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.