# Pattern16

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactive/linq/struct-pattern16/

**struct** · [`ferroui-reactive`](/docs/0.5.0/api/ferroui-reactive/) · v0.5.0

```rust
struct Pattern16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>
```

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

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/joins.rs#L400)

## Members

- [`then`](#function-then)
- [`try_then`](#function-try_then)

<a id="function-then"></a>

### then

```rust
fn then<R: 'static>(self: &Self, selector: impl Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> 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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/joins.rs#L400)

<a id="function-try_then"></a>

### try_then

```rust
fn try_then<R: 'static>(self: &Self, selector: impl Fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) -> 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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/joins.rs#L400)

## 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](/docs/0.5.0/api/).
