# CompiledBinding

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/data/struct-compiledbinding/

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

```rust
struct CompiledBinding
```

A binding that uses compiled paths: typed accessors instead of member
lookup by name.

A binding is a mutable reference object: it is created with
`CompiledBinding::empty` or `CompiledBinding::new`, configured
property by property (or with the chaining `with_*` forms) and shared
as `Rc<CompiledBinding>`, which converts to `Rc<dyn BindingBase>`.
Handles compare by identity. The properties are read when the binding
is instantiated on a target: changing them afterwards affects later
instances only.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

## Members

- [`snapshot_for_reload`](#function-snapshot_for_reload)
- [`converter`](#function-converter)
- [`set_converter`](#function-set_converter)
- [`with_converter_value`](#function-with_converter_value)
- [`converter_culture`](#function-converter_culture)
- [`set_converter_culture`](#function-set_converter_culture)
- [`with_converter_culture`](#function-with_converter_culture)
- [`converter_parameter`](#function-converter_parameter)
- [`set_converter_parameter`](#function-set_converter_parameter)
- [`with_converter_parameter`](#function-with_converter_parameter)
- [`delay`](#function-delay)
- [`set_delay`](#function-set_delay)
- [`with_delay`](#function-with_delay)
- [`fallback_value`](#function-fallback_value)
- [`set_fallback_value`](#function-set_fallback_value)
- [`with_fallback_value`](#function-with_fallback_value)
- [`mode`](#function-mode)
- [`set_mode`](#function-set_mode)
- [`with_mode`](#function-with_mode)
- [`path`](#function-path)
- [`set_path`](#function-set_path)
- [`with_path`](#function-with_path)
- [`priority`](#function-priority)
- [`set_priority`](#function-set_priority)
- [`with_priority`](#function-with_priority)
- [`source`](#function-source)
- [`set_source`](#function-set_source)
- [`with_source`](#function-with_source)
- [`string_format`](#function-string_format)
- [`set_string_format`](#function-set_string_format)
- [`with_string_format`](#function-with_string_format)
- [`target_null_value`](#function-target_null_value)
- [`set_target_null_value`](#function-set_target_null_value)
- [`with_target_null_value`](#function-with_target_null_value)
- [`update_source_trigger`](#function-update_source_trigger)
- [`set_update_source_trigger`](#function-set_update_source_trigger)
- [`with_update_source_trigger`](#function-with_update_source_trigger)
- [`default_anchor`](#function-default_anchor)
- [`set_default_anchor`](#function-set_default_anchor)
- [`with_default_anchor`](#function-with_default_anchor)
- [`name_scope`](#function-name_scope)
- [`set_name_scope`](#function-set_name_scope)
- [`with_name_scope`](#function-with_name_scope)
- [`empty`](#function-empty)
- [`new`](#function-new)
- [`with_converter`](#function-with_converter)

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

### snapshot_for_reload

```rust
fn snapshot_for_reload(self: &Self) -> ::std::rc::Rc<Self>
```

An independent description for a development transaction. Keep it
only through preparation: explicit sources can own application objects.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### converter

```rust
fn converter(self: &Self) -> Option<Rc<dyn IValueConverter>>
```

The converter to use.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### set_converter

```rust
fn set_converter(self: &Self, value: Option<Rc<dyn IValueConverter>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### with_converter_value

```rust
fn with_converter_value(self: ::std::rc::Rc<Self>, value: Option<Rc<dyn IValueConverter>>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### converter_culture

```rust
fn converter_culture(self: &Self) -> Option<CultureInfo>
```

The culture in which to evaluate the converter. `None` (the
default) uses the current culture.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### set_converter_culture

```rust
fn set_converter_culture(self: &Self, value: Option<CultureInfo>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### with_converter_culture

```rust
fn with_converter_culture(self: ::std::rc::Rc<Self>, value: Option<CultureInfo>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### converter_parameter

```rust
fn converter_parameter(self: &Self) -> Option<BoxedValue>
```

A parameter to pass to the converter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### set_converter_parameter

```rust
fn set_converter_parameter(self: &Self, value: Option<BoxedValue>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### with_converter_parameter

```rust
fn with_converter_parameter(self: ::std::rc::Rc<Self>, value: Option<BoxedValue>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### delay

```rust
fn delay(self: &Self) -> i32
```

The amount of time, in milliseconds, to wait before updating the
binding source after the value on the target changes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### set_delay

```rust
fn set_delay(self: &Self, value: i32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### with_delay

```rust
fn with_delay(self: ::std::rc::Rc<Self>, value: i32) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### fallback_value

```rust
fn fallback_value(self: &Self) -> Option<BoxedValue>
```

The value to use when the binding is unable to produce a value;
the unset marker for none.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### set_fallback_value

```rust
fn set_fallback_value(self: &Self, value: Option<BoxedValue>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### with_fallback_value

```rust
fn with_fallback_value(self: ::std::rc::Rc<Self>, value: Option<BoxedValue>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### mode

```rust
fn mode(self: &Self) -> BindingMode
```

The binding mode.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### set_mode

```rust
fn set_mode(self: &Self, value: BindingMode)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### with_mode

```rust
fn with_mode(self: ::std::rc::Rc<Self>, value: BindingMode) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### path

```rust
fn path(self: &Self) -> Option<CompiledBindingPath>
```

The binding path.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### set_path

```rust
fn set_path(self: &Self, value: Option<CompiledBindingPath>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### with_path

```rust
fn with_path(self: ::std::rc::Rc<Self>, value: Option<CompiledBindingPath>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### priority

```rust
fn priority(self: &Self) -> BindingPriority
```

The binding priority.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### set_priority

```rust
fn set_priority(self: &Self, value: BindingPriority)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### with_priority

```rust
fn with_priority(self: ::std::rc::Rc<Self>, value: BindingPriority) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### source

```rust
fn source(self: &Self) -> Option<BoxedValue>
```

The source for the binding; the unset marker (the default) binds
to the data context or to the element selected by the path.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### set_source

```rust
fn set_source(self: &Self, value: Option<BoxedValue>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### with_source

```rust
fn with_source(self: ::std::rc::Rc<Self>, value: Option<BoxedValue>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### string_format

```rust
fn string_format(self: &Self) -> Option<String>
```

The string format.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### set_string_format

```rust
fn set_string_format(self: &Self, value: Option<String>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### with_string_format

```rust
fn with_string_format(self: ::std::rc::Rc<Self>, value: Option<String>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### target_null_value

```rust
fn target_null_value(self: &Self) -> Option<BoxedValue>
```

The value to use when the binding produces null; the unset marker
for none.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### set_target_null_value

```rust
fn set_target_null_value(self: &Self, value: Option<BoxedValue>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### with_target_null_value

```rust
fn with_target_null_value(self: ::std::rc::Rc<Self>, value: Option<BoxedValue>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### update_source_trigger

```rust
fn update_source_trigger(self: &Self) -> UpdateSourceTrigger
```

What triggers updates of the binding source in two-way and
one-way-to-source bindings.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### set_update_source_trigger

```rust
fn set_update_source_trigger(self: &Self, value: UpdateSourceTrigger)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### with_update_source_trigger

```rust
fn with_update_source_trigger(self: ::std::rc::Rc<Self>, value: UpdateSourceTrigger) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### default_anchor

```rust
fn default_anchor(self: &Self) -> Option<WeakRef<FerroObject>>
```

The anchor to use if the target is not an element.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### set_default_anchor

```rust
fn set_default_anchor(self: &Self, value: Option<WeakRef<FerroObject>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### with_default_anchor

```rust
fn with_default_anchor(self: ::std::rc::Rc<Self>, value: Option<WeakRef<FerroObject>>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### name_scope

```rust
fn name_scope(self: &Self) -> Option<Weak<dyn INameScope>>
```

The name scope of the place in markup where the binding was created.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### set_name_scope

```rust
fn set_name_scope(self: &Self, value: Option<Weak<dyn INameScope>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### with_name_scope

```rust
fn with_name_scope(self: ::std::rc::Rc<Self>, value: Option<Weak<dyn INameScope>>) -> ::std::rc::Rc<Self>
```

The chaining form of the setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L125)

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

### empty

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

Creates a binding without a path (the parameterless constructor).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L176)

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

### new

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

Creates a binding with the given path.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L181)

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

### with_converter

```rust
fn with_converter(self: Rc<Self>, converter: Rc<dyn IValueConverter>) -> Rc<Self>
```

The chaining form of `set_converter`, for a
converter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding.rs#L187)

## Trait implementations

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

## Availability

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