# SelectorMatchResult

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/styling/enum-selectormatchresult/

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

```rust
enum SelectorMatchResult
```

Describes how a [`SelectorMatch`](/docs/0.5.0/api/ferroui-base/styling/struct-selectormatch/) matches a control and its type.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/selector_match.rs#L7)

## Members

- [`NeverThisType`](#variant-neverthistype)
- [`NeverThisInstance`](#variant-neverthisinstance)
- [`Sometimes`](#variant-sometimes)
- [`AlwaysThisInstance`](#variant-alwaysthisinstance)
- [`AlwaysThisType`](#variant-alwaysthistype)

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

### NeverThisType

```rust
NeverThisType
```

The selector never matches this type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/selector_match.rs#L9)

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

### NeverThisInstance

```rust
NeverThisInstance
```

The selector never matches this instance, but can match this type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/selector_match.rs#L11)

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

### Sometimes

```rust
Sometimes
```

The selector matches this instance based on the activator.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/selector_match.rs#L13)

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

### AlwaysThisInstance

```rust
AlwaysThisInstance
```

The selector always matches this instance, but doesn't always match
this type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/selector_match.rs#L16)

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

### AlwaysThisType

```rust
AlwaysThisType
```

The selector always matches this type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/selector_match.rs#L18)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`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/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `PartialOrd`
- `Ord`
- `Hash`

## Availability

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