Macro rui::bind_no_clone
source · [−]macro_rules! bind_no_clone {
( $state:expr, $type:ident, $field:ident, $type2:ident ) => { ... };
}
Expand description
Similar to bind!
but avoids cloning. Requres both the type
of the binding and the type of the field to be passed in.
For example: bind_no_clone!(state, MyState, value, f32)