# ConverterTypePair

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/bindings/struct-convertertypepair/

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

```rust
struct ConverterTypePair
```

The source and target types of a typed converter: the key of
`BindingTypeConverterRegistry` (`ConverterTypePair`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/converters/converter_type_pair.rs#L11)

## Members

- [`from_type`](#struct_field-from_type)
- [`to_type`](#struct_field-to_type)
- [`new`](#function-new)

<a id="struct_field-from_type"></a>

### from_type

```rust
from_type: crate::ConverterType
```

The type converted from (`FromType`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/converters/converter_type_pair.rs#L13)

<a id="struct_field-to_type"></a>

### to_type

```rust
to_type: crate::ConverterType
```

The type converted to (`ToType`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/converters/converter_type_pair.rs#L15)

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

### new

```rust
fn new(from_type: ConverterType, to_type: ConverterType) -> Self
```

The pair of `from_type` and `to_type`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/converters/converter_type_pair.rs#L20)

## 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`
- `Copy`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `Debug`

## Availability

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