option-chain
A macro for using ? operator in functions that don't return Option.
Examples
use opt;
let v = Test1 ;
let v = opt!;
assert_eq!;
Implementation
It just wraps the expression in a closure that returns Option:
A macro for using ? operator in functions that don't return Option.
use opt;
let v = Test1 ;
let v = opt!;
assert_eq!;
It just wraps the expression in a closure that returns Option: