Trait i_slint_core::properties::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