Searched refs:try_fast_path (Results 1 – 3 of 3) sorted by relevance
/third_party/rust/crates/minimal-lexical/tests/ |
D | number_tests.rs | 58 assert_eq!(number.try_fast_path::<f32>(), Some(1.2345)); in try_fast_path_test() 59 assert_eq!(number.try_fast_path::<f64>(), Some(1.2345)); in try_fast_path_test() 62 assert_eq!(number.try_fast_path::<f32>(), Some(1.2345e-6)); in try_fast_path_test() 63 assert_eq!(number.try_fast_path::<f64>(), Some(1.2345e-6)); in try_fast_path_test() 66 assert_eq!(number.try_fast_path::<f32>(), None); in try_fast_path_test() 67 assert_eq!(number.try_fast_path::<f64>(), Some(1.2345e-16)); in try_fast_path_test() 70 assert_eq!(number.try_fast_path::<f32>(), None); in try_fast_path_test() 71 assert_eq!(number.try_fast_path::<f64>(), None); in try_fast_path_test() 74 assert_eq!(number.try_fast_path::<f32>(), Some(1.2345e16)); in try_fast_path_test() 75 assert_eq!(number.try_fast_path::<f64>(), Some(1.2345e16)); in try_fast_path_test() [all …]
|
/third_party/rust/crates/minimal-lexical/src/ |
D | number.rs | 46 pub fn try_fast_path<F: Float>(&self) -> Option<F> { in try_fast_path() method
|
D | parse.rs | 155 if let Some(value) = num.try_fast_path() { in parse_float()
|