# typed_path

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/metadata/typed_path/

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

```rust
module typed_path
```

The typed path hook of a plain property declared in markup metadata.

A compiled binding whose path is a single plain property of a model type
is evaluated without boxing (`TypedBindingExpression<TSource, TValue>`)
when the path element has typed accessors. Generated code builds such an
element with `CompiledBindingPathBuilder::typed_property::<S, V>(..)`; a
path built at run time from metadata gets it from
`MarkupProperty::typed_path_element`,
which the declaration macros generate for every `properties:` entry from
its accessors (none where the instance type cannot be a shared handle: a
class of the object model, a value type declared as `struct` without
`this:`, a contract without `this:`).

The hook produces the typed element when the instance type of the
declaration (`this:`) is `Rc<S>` with `S: PartialEq` (a shared reference
type, the `TSource : class` of the managed original) and the property
type is a property value type: an element that follows the property
change notifications of the source when `S: INotifyPropertyChanged`, one
that reads the value once per source otherwise. For every other
declaration (value types, handles of contracts, classes of the object
model, and a property of the untyped value type) it produces nothing and the caller uses the untyped element. The
choice is made by method resolution at the declaration (the most
specific form that applies is selected), so a declaration needs no
syntax for it.

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

## Contents

- [`TypedPathElement`](/docs/0.5.0/api/ferroui-base/metadata/typed_path/type_alias-typedpathelement/) — type alias
- [`TypedPathGetter`](/docs/0.5.0/api/ferroui-base/metadata/typed_path/type_alias-typedpathgetter/) — type alias
- [`TypedPathSetter`](/docs/0.5.0/api/ferroui-base/metadata/typed_path/type_alias-typedpathsetter/) — type alias

## Availability

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