# EqualityTypeConverter

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

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

```rust
struct EqualityTypeConverter
```

Converts any value to whether it equals the conversion hint (`EqualityTypeConverter`): the
converter of last resort, from `dyn Any` (upstream's `object`) to `bool`, with an affinity of 1.
It always succeeds; no value (`None`) equals only no hint.

Two values are equal when they are the same object, or when they have the same type and that
type is one whose equality is known here: the integers, the floating-point numbers (`NaN` equals
itself, as `Double.Equals` has it), `bool`, `char`, `()`, `Uuid` (and the deprecated
`ferroui_splat::Guid`), `Duration`, an `Option` of those, and the strings (`String` and
`&'static str`, which compare with each other).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/converter/equality_type_converter.rs#L22)

## 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`
- `Debug`
- `Default`
- [`IBindingTypeConverter`](/docs/0.5.0/api/ferroui-reactiveui/binding/bindings/trait-ibindingtypeconverter/)

## Availability

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