File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 3
3
4
4
use std:: usize;
5
5
use std:: cmp;
6
- use std:: u32;
7
6
8
7
/// `SizeHint` is the return type of `Iterator::size_hint()`.
9
8
pub type SizeHint = ( usize , Option < usize > ) ;
@@ -75,21 +74,6 @@ pub fn mul_scalar(sh: SizeHint, x: usize) -> SizeHint {
75
74
( low, hi)
76
75
}
77
76
78
- /// Raise `base` correctly by a `SizeHint` exponent.
79
- #[ inline]
80
- #[ allow( dead_code) ]
81
- pub fn pow_scalar_base ( base : usize , exp : SizeHint ) -> SizeHint {
82
- let exp_low = cmp:: min ( exp. 0 , u32:: MAX as usize ) as u32 ;
83
- let low = base. saturating_pow ( exp_low) ;
84
-
85
- let hi = exp. 1 . and_then ( |exp| {
86
- let exp_hi = cmp:: min ( exp, u32:: MAX as usize ) as u32 ;
87
- base. checked_pow ( exp_hi)
88
- } ) ;
89
-
90
- ( low, hi)
91
- }
92
-
93
77
/// Return the maximum
94
78
#[ inline]
95
79
pub fn max ( a : SizeHint , b : SizeHint ) -> SizeHint {
You can’t perform that action at this time.
0 commit comments