Binding
struct · ferroui-markup · v0.5.0
struct Binding
A binding with a string path, resolved at run time. This is the binding that markup creates when bindings are not compiled.
The class derives from ReflectionBinding, whose properties it has.
Like it, a binding is a mutable reference object shared as Rc<Binding>,
which converts to Rc<dyn BindingBase>; handles compare by identity.
Members
newwith_pathwith_path_and_modewith_converterwith_converter_valuewith_converter_culturewith_converter_parameterwith_delaywith_element_namewith_fallback_valuewith_modewith_prioritywith_relative_sourcewith_sourcewith_string_formatwith_target_null_valuewith_update_source_triggerwith_type_resolverwith_default_anchorwith_name_scope
new
fn new() -> Rc<Self>
Creates a binding without a path: binds to the source itself.
with_path
fn with_path(path: &str) -> Rc<Self>
Creates a binding with the given path.
with_path_and_mode
fn with_path_and_mode(path: &str, mode: BindingMode) -> Rc<Self>
Creates a binding with the given path and mode.
with_converter
fn with_converter(self: Rc<Self>, converter: Rc<dyn IValueConverter>) -> Rc<Self>
The chaining form of set_converter, for a converter.
with_converter_value
fn with_converter_value(self: Rc<Self>, value: Option<Rc<dyn IValueConverter>>) -> Rc<Self>
The chaining form of the setter.
with_converter_culture
fn with_converter_culture(self: Rc<Self>, value: Option<CultureInfo>) -> Rc<Self>
The chaining form of the setter.
with_converter_parameter
fn with_converter_parameter(self: Rc<Self>, value: Option<BoxedValue>) -> Rc<Self>
The chaining form of the setter.
with_delay
fn with_delay(self: Rc<Self>, value: i32) -> Rc<Self>
The chaining form of the setter.
with_element_name
fn with_element_name(self: Rc<Self>, value: Option<String>) -> Rc<Self>
The chaining form of the setter.
with_fallback_value
fn with_fallback_value(self: Rc<Self>, value: Option<BoxedValue>) -> Rc<Self>
The chaining form of the setter.
with_mode
fn with_mode(self: Rc<Self>, value: BindingMode) -> Rc<Self>
The chaining form of the setter.
with_priority
fn with_priority(self: Rc<Self>, value: BindingPriority) -> Rc<Self>
The chaining form of the setter.
with_relative_source
fn with_relative_source(self: Rc<Self>, value: Option<Rc<RelativeSource>>) -> Rc<Self>
The chaining form of the setter.
with_source
fn with_source(self: Rc<Self>, value: Option<BoxedValue>) -> Rc<Self>
The chaining form of the setter.
with_string_format
fn with_string_format(self: Rc<Self>, value: Option<String>) -> Rc<Self>
The chaining form of the setter.
with_target_null_value
fn with_target_null_value(self: Rc<Self>, value: Option<BoxedValue>) -> Rc<Self>
The chaining form of the setter.
with_update_source_trigger
fn with_update_source_trigger(self: Rc<Self>, value: UpdateSourceTrigger) -> Rc<Self>
The chaining form of the setter.
with_type_resolver
fn with_type_resolver(self: Rc<Self>, value: Option<TypeResolver>) -> Rc<Self>
The chaining form of the setter.
with_default_anchor
fn with_default_anchor(self: Rc<Self>, value: Option<WeakRef<FerroObject>>) -> Rc<Self>
The chaining form of the setter.
with_name_scope
fn with_name_scope(self: Rc<Self>, value: Option<Weak<dyn INameScope>>) -> Rc<Self>
The chaining form of the setter.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyAnyValueClassDefaultsErasedDestructorIntoEitherDefaultPartialEqDerefBindingBase
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.