extern_spec_std_time_Instant_checked_add

Function extern_spec_std_time_Instant_checked_add 

Source
pub fn extern_spec_std_time_Instant_checked_add(
    self_: &Instant,
    duration: Duration,
) -> Option<Instant>
Expand description

extern spec for ::std::time::Instant::checked_add

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

terminates

ghost

ensures

duration@ == 0 ==> result.deep_model() == Some(self@)

ensures

duration@ > 0 && result != None ==> Some(self@) < result.deep_model()