# CompiledBindingExtension

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-markup-xaml/markup_extensions/struct-compiledbindingextension/

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

```rust
struct CompiledBindingExtension
```

`{CompiledBinding Path}`: a binding with a compiled path, as markup
declares it. Providing its value creates the binding with the context of
the place it is declared in (the default anchor).

The managed class derives from the compiled binding class; here it holds
one (`base`) and dereferences to it, so the inherited
properties are read and set on the extension itself.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/markup_extensions/compiled_binding_extension.rs#L19)

## Members

- [`new`](#function-new)
- [`with_path`](#function-with_path)
- [`base`](#function-base)
- [`provide_value`](#function-provide_value)
- [`data_type`](#function-data_type)
- [`set_data_type`](#function-set_data_type)

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

### new

```rust
fn new() -> Rc<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/markup_extensions/compiled_binding_extension.rs#L25)

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

### with_path

```rust
fn with_path(path: CompiledBindingPath) -> Rc<Self>
```

Creates the extension with a path.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/markup_extensions/compiled_binding_extension.rs#L30)

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

### base

```rust
fn base(self: &Self) -> &Rc<CompiledBinding>
```

The compiled binding this extension is (the base class part).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/markup_extensions/compiled_binding_extension.rs#L37)

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

### provide_value

```rust
fn provide_value(self: &Self, provider: Option<&Rc<dyn IServiceProvider>>) -> Rc<CompiledBinding>
```

Creates the binding the extension describes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/markup_extensions/compiled_binding_extension.rs#L42)

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

### data_type

```rust
fn data_type(self: &Self) -> Option<ValueType>
```

The type of the data context the path was compiled against.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/markup_extensions/compiled_binding_extension.rs#L61)

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

### set_data_type

```rust
fn set_data_type(self: &Self, value: Option<ValueType>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/markup_extensions/compiled_binding_extension.rs#L65)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`BindingBase`](/docs/0.5.0/api/ferroui-base/data/trait-bindingbase/)
- `PartialEq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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