Lines Matching refs:MAX
178 if len <= usize::MAX as $len_t {
320 assert_eq!(u128::MAX, (i128::MIN..i128::MAX).len()); in test_i128_len_doesnt_overflow()
328 Some(usize::MAX), in test_u64_opt_len()
329 (0..usize::MAX as u64).into_par_iter().opt_len() in test_u64_opt_len()
331 if (usize::MAX as u64) < u64::MAX { in test_u64_opt_len()
334 (0..(usize::MAX as u64).wrapping_add(1)) in test_u64_opt_len()
338 assert_eq!(None, (0..u64::MAX).into_par_iter().opt_len()); in test_u64_opt_len()
347 Some(usize::MAX), in test_u128_opt_len()
348 (0..usize::MAX as u128).into_par_iter().opt_len() in test_u128_opt_len()
350 assert_eq!(None, (0..1 + usize::MAX as u128).into_par_iter().opt_len()); in test_u128_opt_len()
351 assert_eq!(None, (0..u128::MAX).into_par_iter().opt_len()); in test_u128_opt_len()
362 let iter = (-2..i64::MAX).into_par_iter(); in test_usize_i64_overflow()
363 assert_eq!(iter.opt_len(), Some(i64::MAX as usize + 2)); in test_usize_i64_overflow()
367 pool.install(|| assert_eq!(iter.find_last(|_| true), Some(i64::MAX - 1))); in test_usize_i64_overflow()