FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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).

    View source

    Members

    Value

    Value(T)
    

    The value itself.

    Source

    Factory

    Factory(std::rc::Rc<dyn Fn() -> T>)
    

    A factory run when the helper starts, or on the first read of a deferred helper.

    Source

    factory

    fn factory(factory: impl Fn() -> T + 'static) -> Self
    

    A factory of the initial value.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • Clone
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.