# element

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/element/

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

```rust
module element
```

The element tree: a description of controls, their properties, handlers
and children, and how it becomes controls (`Element::mount`).

An element is data: the class to create, a list of property values (the
property and its value, compared by value), handlers, children and a key.
Mounting creates the controls (`mount.rs`). What changes afterwards
changes through the reactive values the element holds (a property set from
a signal or a closure, a list of children that follows a signal), or by a
component that runs again ([`rerender`](/docs/0.5.0/api/ferroui-view/element/function-rerender/)): the reconciler compares the tree
it returns with the one before and patches the controls.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/element.rs#L1)

## Contents

- [`Key`](/docs/0.5.0/api/ferroui-view/element/enum-key/) — enum
- [`PropValue`](/docs/0.5.0/api/ferroui-view/element/enum-propvalue/) — enum
- [`PropEntry`](/docs/0.5.0/api/ferroui-view/element/struct-propentry/) — struct
- [`Attach`](/docs/0.5.0/api/ferroui-view/element/type_alias-attach/) — type alias
- [`Handler`](/docs/0.5.0/api/ferroui-view/element/struct-handler/) — struct
- [`ElementClass`](/docs/0.5.0/api/ferroui-view/element/struct-elementclass/) — struct
- [`ControlElement`](/docs/0.5.0/api/ferroui-view/element/struct-controlelement/) — struct
- [`DynamicChildren`](/docs/0.5.0/api/ferroui-view/element/struct-dynamicchildren/) — struct
- [`AnyValueEq`](/docs/0.5.0/api/ferroui-view/element/trait-anyvalueeq/) — trait
- [`ComponentElement`](/docs/0.5.0/api/ferroui-view/element/struct-componentelement/) — struct
- [`rerender`](/docs/0.5.0/api/ferroui-view/element/function-rerender/) — function
- [`Element`](/docs/0.5.0/api/ferroui-view/element/enum-element/) — enum
- [`IntoElement`](/docs/0.5.0/api/ferroui-view/element/trait-intoelement/) — trait
- [`IntoChild`](/docs/0.5.0/api/ferroui-view/element/trait-intochild/) — trait
- [`IntoChildren`](/docs/0.5.0/api/ferroui-view/element/trait-intochildren/) — trait
- [`with_key`](/docs/0.5.0/api/ferroui-view/element/function-with_key/) — function

## Availability

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