Skip to main content

extern_spec_T_Option__ref_T_copied

Function extern_spec_T_Option__ref_T_copied 

Source
pub fn extern_spec_T_Option__ref_T_copied<T>(self_: Option<&T>) -> Option<T>
where T: Copy,
Expand description

extern spec for Option<&T>::copied

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

terminates

ghost

ensures

match self {
    None => result == None,
    Some(s) => result == Some(*s)
}