3 ms·
> I thought that `?` only unwrapped `Option` and `Result` and was not overloadable. This is still true, although the experimental Try trait in nightly does pro
by ben-schaaf 3y ago
> I thought that `?` only unwrapped `Option` and `Result` and was not overloadable.
This is still true, although the experimental Try trait in nightly does provide this. `From` is applied to the Error of the returned Result, ie. Result<T, String> => Result<T, MyError>.
- masklinn 3y ago> This is still true Not since the addition of ControlFlow.