# TreeNodeCollectionImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/view_models/trait-treenodecollectionimpl/

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

```rust
trait TreeNodeCollectionImpl
```

The members a kind of [`TreeNodeCollection`](/docs/0.5.0/api/ferroui-diagnostics/diagnostics/view_models/struct-treenodecollection/) overrides: the abstract
`Initialize` and the virtual `Dispose` of the original.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/tree_node_collection.rs#L15)

## Members

- [`initialize`](#function-initialize)
- [`dispose`](#function-dispose)

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

### initialize

```rust
fn initialize(self: &Self, this: &TreeNodeCollection, nodes: &FerroList<Rc<TreeNode>>)
```

`protected abstract void Initialize(FerroList<TreeNode> nodes)`:
fills `nodes` and keeps them up to date. Called once, when the
collection is first used.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/tree_node_collection.rs#L19)

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

### dispose

```rust
fn dispose(self: &Self, this: &TreeNodeCollection)
```

`public virtual void Dispose()`. The base implementation disposes the
nodes (`TreeNodeCollection::base_dispose`); an override calls it
where the original calls `base.Dispose()`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/tree_node_collection.rs#L24)

## Trait implementations

- [`TreeNodeCollectionImpl`](/docs/0.5.0/api/ferroui-diagnostics/diagnostics/view_models/trait-treenodecollectionimpl/)

## Availability

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