Macro bind_map2
Source macro_rules! bind_map2 {
($s1:expr, $s2:expr, $f:expr) => { ... };
}
Expand description
Create a mapped Binding from two observables.
§Examples
ⓘlet width = Observable::new(10);
let height = Observable::new(20);
let area = bind_map2!(width, height, |w, h| w * h);
assert_eq!(area.get(), 200);