Home
last modified time | relevance | path

Searched refs:to_u64 (Results 1 – 3 of 3) sorted by relevance

/third_party/rust/crates/num-traits/src/
Dcast.rs70 self.to_u64().as_ref().and_then(ToPrimitive::to_usize) in to_usize()
77 self.to_u64().as_ref().and_then(ToPrimitive::to_u8) in to_u8()
84 self.to_u64().as_ref().and_then(ToPrimitive::to_u16) in to_u16()
91 self.to_u64().as_ref().and_then(ToPrimitive::to_u32) in to_u32()
96 fn to_u64(&self) -> Option<u64>; in to_u64() method
109 self.to_u64().map(From::from) in to_u128()
131 None => self.to_u64().as_ref().and_then(ToPrimitive::to_f64), in to_f64()
185 fn to_u64 -> u64;
258 fn to_u64 -> u64;
385 fn to_u64 -> u64;
[all …]
/third_party/rust/crates/log/src/kv/
Dvalue.rs577 to_u64 -> u64,
838 assert_eq!(Some(42u64), Value::capture_display(&42).to_u64()); in test_capture_fmt()
839 assert_eq!(Some(42u64), Value::capture_debug(&42).to_u64()); in test_capture_fmt()
841 assert!(Value::from_display(&42).to_u64().is_none()); in test_capture_fmt()
842 assert!(Value::from_debug(&42).to_u64().is_none()); in test_capture_fmt()
857 assert_eq!(Some(42u64), Value::capture_serde(&42).to_u64()); in test_capture_serde()
859 assert_eq!(Some(42u64), Value::from_serde(&42).to_u64()); in test_capture_serde()
865 assert_eq!(Some(42u64), Value::capture_sval(&42).to_u64()); in test_capture_sval()
867 assert_eq!(Some(42u64), Value::from_sval(&42).to_u64()); in test_capture_sval()
902 assert!(v.to_u64().is_some()); in test_to_number()
[all …]
/third_party/rust/crates/num-traits/tests/
Dcast.rs46 assert_eq!(i.to_u64(), w.to_u64()); in wrapping_to_primitive()
372 fn to_u64(&self) -> Option<u64> { in newtype_to_primitive() method
373 self.0.to_u64() in newtype_to_primitive()
388 assert_eq_to!(to_u8 to_u16 to_u32 to_u64 to_usize); in newtype_to_primitive()