Skip to main content

extern_spec_TryFrom_u16_i16_try_from

Function extern_spec_TryFrom_u16_i16_try_from 

Source
pub fn extern_spec_TryFrom_u16_i16_try_from(
    value: u16,
) -> Result<i16, TryFromIntError>
Expand description

extern spec for i16::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@ }