# CompositeTranslationProvider

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-protranslate-core/struct-compositetranslationprovider/

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

```rust
struct CompositeTranslationProvider
```

Ordered, composable providers. Provider failures remain in result diagnostics
even if a later provider successfully resolves the value.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/provider.rs#L271)

## Members

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

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

### new

```rust
fn new(providers: Vec<Rc<dyn TranslationProvider>>) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/provider.rs#L278)

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

### with_failure_behavior

```rust
fn with_failure_behavior(self: Self, behavior: TranslationProviderFailureBehavior) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/provider.rs#L286)

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

### providers

```rust
fn providers(self: &Self) -> &[Rc<dyn TranslationProvider>]
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/provider.rs#L290)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- [`TranslationProvider`](/docs/0.5.0/api/ferroui-protranslate-core/trait-translationprovider/)

## Availability

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