CustomBinding

Trait CustomBinding 

Source
pub trait CustomBinding: Signal {
    // Required method
    fn set(&mut self, value: Self::Output);
}
Expand description

The CustomBinding trait represents a computable value that can also be set.

Any type implementing this trait must also implement Signal to provide the ability to retrieve its current value, and adds the ability to mutate the value.

Required Methods§

Source

fn set(&mut self, value: Self::Output)

Sets a new value for this binding.

This will typically trigger notifications to any watchers.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§