FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SwitchSource

    trait · ferroui-reactiveui · v0.5.0

    trait SwitchSource<T>
    

    A value that is an observable of T: an observable, or a reactive command (whose results are its values). It is the element of the sources SwitchSubscribeMixins::switch_subscribe takes, which upstream overloads for IObservable<IObservable<T>?> and for IObservable<IReactiveCommand<TParam, TResult>?>.

    View source

    Members

    as_switch_source

    fn as_switch_source(self: &Self) -> Rc<dyn IObservable<T>>
    

    The value as an observable.

    Source

    Trait implementations

    Availability

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