Skip to main content

extern_spec_T_Option_T_unwrap_or_else

Function extern_spec_T_Option_T_unwrap_or_else 

Source
pub fn extern_spec_T_Option_T_unwrap_or_else<T, F: FnOnce() -> T>(
    self_: Option<T>,
    f: F,
) -> T
Expand description

extern spec for Option<T>::unwrap_or_else

This is not a real function: its only use is for documentation.

requires

self

ensures

self