I have a struct that I want to look a bit like the following:
struct C {
arg_1: Option<A>,
arg_2: Option<B>,
caller: FnMut[...]
}
The caller is supposed to be a closure which can have either arguments
|x|if botharg_1andarg_2areNone|x, a/b|depending whetherarg_1orarg_2areSomewith all three arguments if neither areNone. Currently looking at this as part of a builder problem - is this possible? If yes, how would that look like?