FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Pattern14

    struct · ferroui-reactive · v0.5.0

    struct Pattern14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>
    

    A join pattern over 14 sequences (Pattern<TSource1, ...> of 14): it matches when all of them have a value.

    View source

    Members

    then

    fn then<R: 'static>(self: &Self, selector: impl Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) -> R + 'static) -> Plan<R>
    

    The plan that matches when all the sequences of the pattern have a value and projects the values with selector (Then<TResult>(Func<TSource1, ..., TResult>)).

    Source

    try_then

    fn try_then<R: 'static>(self: &Self, selector: impl Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) -> Result<R, ObservableError> + 'static) -> Plan<R>
    

    then with a selector that may fail; a failure ends the sequence of Observable::when with its error (Then with a selector that throws).

    Source

    and

    fn and<T15: 'static>(self: &Self, other: Rc<dyn IObservable<T15>>) -> Pattern15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>
    

    The pattern that also needs a value of other (And<TSourceN>(IObservable<TSourceN>)).

    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

    Availability

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