# ITemplateOf

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

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

```rust
trait ITemplateOf<TControl>: ITemplate
```

Creates a control (the single type argument form of the template
contract).

`TControl` is the exact value produced, usually `Ref<Control>` or
`Option<Ref<Control>>`.

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

## Members

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

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

### build_typed

```rust
fn build_typed(self: &Self) -> TControl
```

Creates the control.

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

## Trait implementations

- [`ITemplateOf<TControl>`](/docs/0.5.0/api/ferroui-controls/templates/trait-itemplateof/)

## Availability

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