Macro frappe::signal_lift [] [src]

macro_rules! signal_lift {
    ($($sig:expr),+ => $f:expr) => { ... };
    ($f:expr) => { ... };
    ($f:expr, $sig1:expr) => { ... };
    ($f:expr, $sig1:expr, $sig2:expr) => { ... };
    ($f:expr, $sig1:expr, $sig2:expr, $sig3:expr) => { ... };
    ($f:expr, $sig1:expr, $sig2:expr, $sig3:expr, $sig4:expr) => { ... };
    ($f:expr, $sig1:expr, $sig2:expr, $sig3:expr, $sig4:expr, $sig5:expr) => { ... };
    ($f:expr, $sig1:expr, $sig2:expr, $sig3:expr, $sig4:expr, $sig5:expr, $sig6:expr) => { ... };
}

Maps a function over the value of signals.

This converts a function Fn(MaybeOwned<A>, MaybeOwned<B>, ...) -> R and the signals Signal<A>, Signal<B>, ... into a Signal<R> that computes it's value by sampling the input signals and then calling the supplied function.