3 ms·
Except it's treated as a normal return and could be written that way. There is no stack magic happening. The return value is a Result, which is an enum and mus
by tmzt 10y ago
Except it's treated as a normal return and could be written that way. There is no stack magic happening.
The return value is a Result, which is an enum and must be handled in a match or other construct, or explicitly ignored with an .ok or .expect (that may be for Option only) which result in a panic if not successful.