macro_rules! apply_m {
($i:expr, $self_:ident.$method:ident, $($args:expr),* ) => { ... };
}
Expand description
emulate function currying for method calls on structs
apply_m!(self.my_function, arg1, arg2, ...)
becomes self.my_function(input, arg1, arg2, ...)
Supports up to 6 arguments