Re:Announcing Rust 1.13
by tmzt on Thursday November 10, 2016 @06:16PM
(#12925552)
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.
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.