Home
last modified time | relevance | path

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

/third_party/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 …]
/third_party/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()
/third_party/rust/crates/tracing/tracing-opentelemetry/tests/
Dmetrics_publishing.rs248 if dbg!(self.expected_value.to_i64(&self.expected_number_kind)) > 100 { in export()
250 } else if self.expected_value.to_i64(&self.expected_number_kind) > 0 { in export()
/third_party/rust/crates/log/src/kv/
Dvalue.rs579 to_i64 -> i64,
903 assert!(v.to_i64().is_some()); in test_to_number()
907 assert!(v.to_i64().is_some()); in test_to_number()
916 assert!(v.to_i64().is_none()); in test_to_number()