# ViewResolutionMode

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-static-view-locator/enum-viewresolutionmode/

**enum** · [`ferroui-static-view-locator`](/docs/0.5.0/api/ferroui-static-view-locator/) · v0.5.0

```rust
enum ViewResolutionMode
```

The fallback precedence the generated adapters are compiled with
(`generated_adapter_resolution_mode` of `static_view_locator`).

The generator flattens the precedence into the table of the views: a view model type of the
crate that has no view of its own gets the view of its nearest mapped base class or of its
mapped trait, in the order the mode states.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/StaticViewLocator/FerroUI.StaticViewLocator/lib.rs#L76)

## Members

- [`Exact`](#variant-exact)
- [`ExactThenBaseTypes`](#variant-exactthenbasetypes)
- [`ExactThenInterfaces`](#variant-exacttheninterfaces)
- [`ExactThenBaseTypesThenInterfaces`](#variant-exactthenbasetypestheninterfaces)
- [`ExactThenInterfacesThenBaseTypes`](#variant-exacttheninterfacesthenbasetypes)

<a id="variant-exact"></a>

### Exact

```rust
Exact
```

The exact run-time type only.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/StaticViewLocator/FerroUI.StaticViewLocator/lib.rs#L78)

<a id="variant-exactthenbasetypes"></a>

### ExactThenBaseTypes

```rust
ExactThenBaseTypes
```

The exact type, then the nearest mapped base class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/StaticViewLocator/FerroUI.StaticViewLocator/lib.rs#L80)

<a id="variant-exacttheninterfaces"></a>

### ExactThenInterfaces

```rust
ExactThenInterfaces
```

The exact type, then the nearest mapped trait.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/StaticViewLocator/FerroUI.StaticViewLocator/lib.rs#L82)

<a id="variant-exactthenbasetypestheninterfaces"></a>

### ExactThenBaseTypesThenInterfaces

```rust
ExactThenBaseTypesThenInterfaces
```

The exact type, the mapped base classes, then the mapped traits. The default.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/StaticViewLocator/FerroUI.StaticViewLocator/lib.rs#L85)

<a id="variant-exacttheninterfacesthenbasetypes"></a>

### ExactThenInterfacesThenBaseTypes

```rust
ExactThenInterfacesThenBaseTypes
```

The exact type, the mapped traits, then the mapped base classes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/StaticViewLocator/FerroUI.StaticViewLocator/lib.rs#L87)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

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