Searched refs:to_i16 (Results 1 – 5 of 5) sorted by relevance
37 fn to_i16(&self) -> Option<i16> { in to_i16() method38 self.to_i64().as_ref().and_then(ToPrimitive::to_i16) in to_i16()173 fn to_i16 -> i16;246 fn to_i16 -> i16;373 fn to_i16 -> i16;594 impl_from_primitive!(i16, to_i16);623 fn to_i16 -> i16;729 impl_num_cast!(i16, to_i16);
49 assert_eq!(i.to_i16(), w.to_i16()); in wrapping_to_primitive()387 assert_eq_to!(to_i8 to_i16 to_i32 to_i64 to_isize); in newtype_to_primitive()
452 fn to_i16(&self) -> Option<i16> { in to_primitive()453 <#inner_ty as #import::ToPrimitive>::to_i16(&self.0) in to_primitive()
666 fn to_i16(&self) -> Option<i16> { in to_i16() method667 Self::to_f32(*self).to_i16() in to_i16()
54 fn to_i16(&self) -> Option<i16> { in to_i16() method55 Self::to_f32(*self).to_i16() in to_i16()