Skip to main content

extern_spec_TryFrom_u32_i32_try_from

Function extern_spec_TryFrom_u32_i32_try_from 

Source
pub fn extern_spec_TryFrom_u32_i32_try_from(
    value: u32,
) -> Result<i32, TryFromIntError>
Expand description

extern spec for i32::try_from

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

ghost

ensures

match result { Ok(val) => val@ == value@, Err(_) => value@ > Self::MAX@ }