# FuncMultiValueConverter

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/data/converters/struct-funcmultivalueconverter/

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

```rust
struct FuncMultiValueConverter<TIn, TOut>
```

A general purpose [`IMultiValueConverter`](/docs/0.5.0/api/ferroui-base/data/converters/trait-imultivalueconverter/) that uses a function to
provide the converter logic.

`TIn` is the type of the inputs and `TOut` the output type. Use
`Option<T>` for inputs that may be null and `Option<BoxedValue>` for "any
value". If any input is not a `TIn` the converter returns the unset value
marker.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/converters/func_multi_value_converter.rs#L16)

## Members

- [`new`](#function-new)

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

### new

```rust
fn new(convert: impl Fn(&[TIn]) -> TOut + 'static) -> Self
```

Creates a converter from the convert function.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/converters/func_multi_value_converter.rs#L24)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- [`IMultiValueConverter`](/docs/0.5.0/api/ferroui-base/data/converters/trait-imultivalueconverter/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
