Macro rui::bind

source · []
macro_rules! bind {
    ( $state:expr, $field:ident ) => { ... };
    ( $state:expr, $field:ident [$index:expr] ) => { ... };
    ( $state:expr, [$index:expr] ) => { ... };
}
Expand description

Constructs a new binding from a binding and an expression.

For example bind(b, x) will create a binding to a member x inside b.

bind(b, [i]) will create a binding to the ith array element in b.

bind(b, x[i]) will create a binding to the ith array element of member x in b.