Home
last modified time | relevance | path

Searched refs:to_i16 (Results 1 – 5 of 5) sorted by relevance

/external/rust/crates/num-traits/src/
Dcast.rs37 fn to_i16(&self) -> Option<i16> { in to_i16() method
38 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);
/external/rust/crates/num-traits/tests/
Dcast.rs49 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()
/external/rust/crates/num-derive/src/
Dlib.rs452 fn to_i16(&self) -> Option<i16> { in to_primitive()
453 <#inner_ty as #import::ToPrimitive>::to_i16(&self.0) in to_primitive()
/external/rust/crates/half/src/
Dbfloat.rs666 fn to_i16(&self) -> Option<i16> { in to_i16() method
667 Self::to_f32(*self).to_i16() in to_i16()
Dbinary16.rs54 fn to_i16(&self) -> Option<i16> { in to_i16() method
55 Self::to_f32(*self).to_i16() in to_i16()