Skip to main content

extern_spec_T_Try_Option_T_branch

Function extern_spec_T_Try_Option_T_branch 

Source
pub fn extern_spec_T_Try_Option_T_branch<T>(
    self_: Option<T>,
) -> ControlFlow<Option<Infallible>, T>
Expand description

extern spec for Option<T>::branch

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

ensures

match self {
    Some(v) => result == ControlFlow::Continue(v),
    None => result == ControlFlow::Break(None)
}