# CombinedTreeNode

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/view_models/struct-combinedtreenode/

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

```rust
struct CombinedTreeNode
```

A node of the combined tree.

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

## Members

- [`new_logical`](#function-new_logical)
- [`create`](#function-create)
- [`is_logical_child`](#function-is_logical_child)

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

### new_logical

```rust
fn new_logical(ferro_object: Ref<FerroObject>, parent: Option<&Rc<TreeNode>>) -> Rc<TreeNode>
```

The node of an element of the logical tree: its children are the parts of its template,
then its logical children; or the node of the top levels of a group.

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

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

### create

```rust
fn create(control: impl Into<Nullable<FerroObject>>) -> Vec<Rc<TreeNode>>
```

The root node of the combined tree of `control`, or no node when it is not an object of
the framework.

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

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

### is_logical_child

```rust
fn is_logical_child(element: &Ref<StyledElement>) -> bool
```

Whether `element` is a node of the logical tree: it and each of its logical ancestors are
among the logical children of their logical parents, up to the root (an element without a
logical parent). The root of a template has the templated control as its logical parent but
is not among its children, and neither it nor the elements logically below it (the child of
a border of the template) are nodes of the logical tree.

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

## 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`

## Availability

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