pub const fn const_unwrap_result<T: Copy, E: Copy + Debug>( opt: Result<T, E>, ) -> T
Unwraps a Result’s Ok variant, or panics.
Result
Ok
const_unwrap_result is a const fn, and may be called in a const context. Note that, if called from a non-const context, const_unwrap_result will execute at runtime, not at compile time.
const_unwrap_result
const fn