# IControlTemplate

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

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

```rust
trait IControlTemplate: ITemplateWithParam<ferroui_base::Ref<crate::primitives::TemplatedControl>, Option<super::TemplateResult<ferroui_base::Ref<crate::Control>>>>
```

Interface representing a template used to build a control for a lookless
control.

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

## Members

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

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

### as_any

```rust
fn as_any(self: &Self) -> Option<&dyn std::any::Any>
```

The template as its concrete type
(`as_any()?.downcast_ref::<T>()`): the equivalent of `is`/`as` on the
contract. `None` unless the implementation provides it.

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

## Trait implementations

- [`IControlTemplate`](/docs/0.5.0/api/ferroui-controls/templates/trait-icontroltemplate/)

## Availability

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