# ItemTemplateWrapper

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-repeater/struct-itemtemplatewrapper/

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

```rust
struct ItemTemplateWrapper
```

Adapts FerroUI data templates and recycling templates to the element-factory
contract while retaining template-specific pools across repeaters.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_template_wrapper.rs#L49)

## Members

- [`new`](#function-new)
- [`with_selector`](#function-with_selector)
- [`template`](#function-template)
- [`set_template`](#function-set_template)
- [`template_selector`](#function-template_selector)
- [`set_template_selector`](#function-set_template_selector)

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

### new

```rust
fn new(template: Rc<dyn IDataTemplate>) -> Rc<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_template_wrapper.rs#L59)

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

### with_selector

```rust
fn with_selector(selector: Rc<dyn IDataTemplateSelector>) -> Rc<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_template_wrapper.rs#L65)

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

### template

```rust
fn template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_template_wrapper.rs#L71)

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

### set_template

```rust
fn set_template(self: &Self, template: Option<Rc<dyn IDataTemplate>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_template_wrapper.rs#L74)

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

### template_selector

```rust
fn template_selector(self: &Self) -> Option<Rc<dyn IDataTemplateSelector>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_template_wrapper.rs#L81)

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

### set_template_selector

```rust
fn set_template_selector(self: &Self, selector: Option<Rc<dyn IDataTemplateSelector>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_template_wrapper.rs#L84)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `PartialEq`
- `Drop`
- [`IElementFactory`](/docs/0.5.0/api/ferroui-controls-repeater/trait-ielementfactory/)
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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