3 ms·
Result and Option both implement Try, so if you actually just want to know whether to keep going or give up, the Try trait will give you a ControlFlow which say
by tialaramex 4y ago
Result and Option both implement Try, so if you actually just want to know whether to keep going or give up, the Try trait will give you a ControlFlow which says exactly that regardless of whether your input is an Option or a Result