# NameScopeValueError

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/controls/enum-namescopevalueerror/

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

```rust
enum NameScopeValueError
```

Why a value could not be registered in a name scope
(`INameScope::try_register_value`): the errors of [`NameScopeError`](/docs/0.5.0/api/ferroui-base/controls/enum-namescopeerror/) and
the ones only a value can have.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/controls/i_name_scope.rs#L31)

## Members

- [`Completed`](#variant-completed)
- [`DuplicateName`](#variant-duplicatename)
- [`UnsupportedValue`](#variant-unsupportedvalue)
- [`NullValue`](#variant-nullvalue)

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

### Completed

```rust
Completed
```

The name scope is completed: no further registrations are allowed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/controls/i_name_scope.rs#L33)

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

### DuplicateName

```rust
DuplicateName(String)
```

Another value is registered with the name.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/controls/i_name_scope.rs#L35)

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

### UnsupportedValue

```rust
UnsupportedValue
```

A custom scope that only implements the registration of objects of the
object model was given another value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/controls/i_name_scope.rs#L38)

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

### NullValue

```rust
NullValue
```

The value is null (a boxed nullable that holds no value).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/controls/i_name_scope.rs#L40)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`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`
- `ToString`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Display`
- [`Error`](/docs/0.5.0/api/ferroui-dynamic-data/kernel/struct-error/)
- `From<NameScopeError>`

## Availability

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