# ItemsSourceModels

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-treedatagrid/struct-itemssourcemodels/

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

```rust
struct ItemsSourceModels
```

The items of an `ItemsSource` as the models of a generated source (`GetSourceItems`): the
non-null items, each boxed once so that a model keeps its identity, following the changes of a
notifying list.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_v12.rs#L21)

## Members

- [`new`](#function-new)
- [`source`](#function-source)
- [`this`](#function-this)

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

### new

```rust
fn new(source: ItemsSource) -> Rc<Self>
```

The models of `source`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_v12.rs#L33)

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

### source

```rust
fn source(self: &Self) -> &ItemsSource
```

The items source.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_v12.rs#L53)

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

### this

```rust
fn this(self: &Self) -> Option<Rc<Self>>
```

The shared models.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_v12.rs#L142)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`ModelCollection<Rc<dyn AnyValue>>`](/docs/0.5.0/api/ferroui-treedatagrid-core/model_collection/trait-modelcollection/)
- `Drop`

## Availability

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