Searched refs:to_u16 (Results 1 – 2 of 2) sorted by relevance
83 fn to_u16(&self) -> Option<u16> { in to_u16() method84 self.to_u64().as_ref().and_then(ToPrimitive::to_u16) in to_u16()183 fn to_u16 -> u16;256 fn to_u16 -> u16;383 fn to_u16 -> u16;601 impl_from_primitive!(u16, to_u16);631 fn to_u16 -> u16;722 impl_num_cast!(u16, to_u16);
44 assert_eq!(i.to_u16(), w.to_u16()); in wrapping_to_primitive()388 assert_eq_to!(to_u8 to_u16 to_u32 to_u64 to_usize); in newtype_to_primitive()