Skip to main content

result_value

Function result_value 

Source
pub unsafe fn result_value<T>(m: Obj, f: impl FnOnce(Obj) -> T) -> T
Expand description

The value of the owned MatchResult α m (the result of Result.match): ok gives the value, fail and div are a Rust panic.