# TreeNodeKind

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/view_models/enum-treenodekind/

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

```rust
enum TreeNodeKind
```

The class of a [`TreeNode`](/docs/0.5.0/api/ferroui-diagnostics/diagnostics/view_models/struct-treenode/): the abstract node of the original is
derived by `LogicalTreeNode` and
`VisualTreeNode`, whose constructors make nodes
of this type with the members they add.

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

## Members

- [`Logical`](#variant-logical)
- [`Visual`](#variant-visual)
- [`Combined`](#variant-combined)

<a id="variant-logical"></a>

### Logical

```rust
Logical
```

A node of the logical tree (`LogicalTreeNode`).

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

<a id="variant-visual"></a>

### Visual

```rust
Visual { is_in_template: bool }
```

A node of the visual tree (`VisualTreeNode`), with its `IsInTemplate`.

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

<a id="variant-combined"></a>

### Combined

```rust
Combined { visual_only: bool }
```

A node of the combined tree (an addition of the port, `combined_tree_node.rs`): an element
of the logical tree, or a part of a template (`visual_only`), shown greyed out.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`TreeModel`](/docs/0.5.0/api/ferroui-treedatagrid-core/accessor/trait-treemodel/)
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`

## Availability

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