ISetMethodBindingConverter
trait · ferroui-reactiveui · v0.5.0
trait ISetMethodBindingConverter
Sets a value on a binding target in a way of its own, such as filling a collection instead of
replacing it (ISetMethodBindingConverter).
SetMethodBindingConverterRegistry picks the one
with the highest affinity for a pair of types.
Members
get_affinity_for_objects
fn get_affinity_for_objects(self: &Self, from_type: Option<ConverterType>, to_type: Option<ConverterType>) -> i32
How well this converter sets a value of from_type on a target of to_type: a positive
score when it can, where a higher score wins; zero or less when it cannot. Either type may
be unknown (GetAffinityForObjects).
perform_set
fn perform_set(self: &Self, to_target: Option<Rc<dyn Any>>, new_value: Option<Rc<dyn Any>>, arguments: Option<&[Option<Rc<dyn Any>>]>) -> Option<Rc<dyn Any>>
Sets new_value on to_target, with the arguments of an indexer if there are any, and
returns the value the target property holds afterwards (PerformSet).
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.