Home
last modified time | relevance | path

Searched refs:to_i64 (Results 1 – 8 of 8) sorted by relevance

/external/rust/crates/num-traits/src/
Dcast.rs24 self.to_i64().as_ref().and_then(ToPrimitive::to_isize) in to_isize()
31 self.to_i64().as_ref().and_then(ToPrimitive::to_i8) in to_i8()
38 self.to_i64().as_ref().and_then(ToPrimitive::to_i16) in to_i16()
45 self.to_i64().as_ref().and_then(ToPrimitive::to_i32) in to_i32()
50 fn to_i64(&self) -> Option<i64>; in to_i64() method
63 self.to_i64().map(From::from) in to_i128()
129 match self.to_i64() { in to_f64()
175 fn to_i64 -> i64;
248 fn to_i64 -> i64;
375 fn to_i64 -> i64;
[all …]
/external/rust/crates/num-traits/tests/
Dcast.rs51 assert_eq!(i.to_i64(), w.to_i64()); in wrapping_to_primitive()
368 fn to_i64(&self) -> Option<i64> { in newtype_to_primitive() method
369 self.0.to_i64() in newtype_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/tests/
Dissue-9.rs17 assert!(SomeEnum::A.to_i64().is_some()); in test_unused_qualifications()
/external/rust/crates/log/src/kv/
Dvalue.rs392 to_i64 -> i64,
570 assert!(v.to_i64().is_some()); in test_to_number()
574 assert!(v.to_i64().is_some()); in test_to_number()
583 assert!(v.to_i64().is_none()); in test_to_number()
/external/rust/crates/libm/
Dbuild.rs234 fn to_i64(&self) -> &'static str { in to_i64() method
310 src.push_str(&format!("let output = output{};", ty.to_i64())); in generate_test_outputs()
318 ret.to_i64(), in generate_test_outputs()
/external/rust/crates/num-derive/src/
Dlib.rs436 fn to_i64(&self) -> Option<i64> { in to_primitive()
437 <#inner_ty as #import::ToPrimitive>::to_i64(&self.0) in to_primitive()
537 fn to_i64(&self) -> Option<i64> { in to_primitive()
543 self.to_i64().map(|x| x as u64) in to_primitive()
/external/rust/crates/half/src/
Dbfloat.rs654 fn to_i64(&self) -> Option<i64> { in to_i64() method
655 Self::to_f32(*self).to_i64() in to_i64()
Dbinary16.rs42 fn to_i64(&self) -> Option<i64> { in to_i64() method
43 Self::to_f32(*self).to_i64() in to_i64()