i_slint_core::properties

Trait Binding

Source
pub trait Binding<T> {
    // Required method
    fn evaluate(&self, old_value: &T) -> T;
}
Expand description

Types that can be set as bindings for a Property<T>

Required Methods§

Source

fn evaluate(&self, old_value: &T) -> T

Evaluate the binding and return the new value

Implementors§

Source§

impl<T, F: Fn() -> T> Binding<T> for F