# FuncTemplateNameScopeExtensions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/templates/trait-functemplatenamescopeextensions/

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

```rust
trait FuncTemplateNameScopeExtensions: Sized
```

Registers a control built by a function template in the template's name
scope.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/templates/func_template_name_scope_extensions.rs#L6)

## Members

- [`register_in_name_scope`](#function-register_in_name_scope)

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

### register_in_name_scope

```rust
fn register_in_name_scope(self: Self, scope: &dyn INameScope) -> Self
```

Registers the control in `scope` under its name and returns it.

Panics if the control has no name.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/templates/func_template_name_scope_extensions.rs#L10)

## Trait implementations

- [`FuncTemplateNameScopeExtensions`](/docs/0.5.0/api/ferroui-controls/templates/trait-functemplatenamescopeextensions/)

## Availability

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