Available on crate feature
ops only.Re-exports
pub use cmp::all::*;pub use convert::all::*;
Modules
Structs
- Fp
stdorlibmFloating-point operations wrapper overstdorlibm.
Traits
- FloatExt
stdorlibmExtension trait for floating-point types.
Functions
- Returns the number of digits of an
i8in the given positivebase. - Returns the number of digits of an
i16in the given positivebase. - Returns the number of digits of an
i32in the given positivebase. - Returns the number of digits of an
i64in the given positivebase. - Returns the number of digits of an
i128in the given positivebase. - Returns the number of digits of an
isizein the given positivebase. - Returns the number of digits of an
i8in the given positivebase, plus the negative sign. - Returns the number of digits of an
i16in the given positivebase, plus the negative sign. - Returns the number of digits of an
i32in the given positivebase, plus the negative sign. - Returns the number of digits of an
i64in the given positivebase, plus the negative sign. - Returns the number of digits of an
i128in the given positivebase, plus the negative sign. - Returns the number of digits of an
isizein the given positivebase, plus the negative sign. - Returns the number of digits of a
u8in the givenbase. - Returns the number of digits of a
u16in the givenbase. - Returns the number of digits of a
u32in the givenbase. - Returns the number of digits of a
u64in the givenbase. - Returns the number of digits of a
u128in the givenbase. - Returns the number of digits of a
usizein the givenbase. - Returns the number of digits of an
i8in base 10. - Returns the number of digits of an
i16in base 10. - Returns the number of digits of an
i32in base 10. - Returns the number of digits of an
i64in base 10. - Returns the number of digits of an
i128in base 10. - Returns the number of digits of an
isizein base 10. - Returns the number of digits of an
i8in base 10, plus the negative sign. - Returns the number of digits of an
i16in base 10, plus the negative sign. - Returns the number of digits of an
i32in base 10, plus the negative sign. - Returns the number of digits of an
i64in base 10, plus the negative sign. - Returns the number of digits of an
i128in base 10, plus the negative sign. - Returns the number of digits of an
isizein base 10, plus the negative sign. - Returns the number of digits of a
u8in base 10. - Returns the number of digits of a
u16in base 10. - Returns the number of digits of a
u32in base 10. - Returns the number of digits of a
u64in base 10. - Returns the number of digits of a
u128in base 10. - Returns the number of digits of a
usizein base 10. - Returns the digital root of an
i8in the given positivebase. - Returns the digital root of an
i16in the given positivebase. - Returns the digital root of an
i32in the given positivebase. - Returns the digital root of an
i64in the given positivebase. - Returns the digital root of an
i128in the given positivebase. - Returns the digital root of an
isizein the given positivebase. - Returns the digital root of a
u8in the givenbase. - Returns the digital root of a
u16in the givenbase. - Returns the digital root of a
u32in the givenbase. - Returns the digital root of a
u64in the givenbase. - Returns the digital root of a
u128in the givenbase. - Returns the digital root of a
usizein the givenbase. - Returns the digital root of an
i8in base 10. - Returns the digital root of an
i16in base 10. - Returns the digital root of an
i32in base 10. - Returns the digital root of an
i64in base 10. - Returns the digital root of an
i128in base 10. - Returns the digital root of an
isizein base 10. - Returns the digital root of a
u8in base 10. - Returns the digital root of a
u16in base 10. - Returns the digital root of a
u32in base 10. - Returns the digital root of a
u64in base 10. - Returns the digital root of a
u128in base 10. - Returns the digital root of a
usizein base 10. - Returns an
i8quotient, rounding the result towards positive infinity. - Returns an
i16quotient, rounding the result towards positive infinity. - Returns an
i32quotient, rounding the result towards positive infinity. - Returns an
i64quotient, rounding the result towards positive infinity. - Returns an
i128quotient, rounding the result towards positive infinity. - Returns an
isizequotient, rounding the result towards positive infinity. - Returns an
u8quotient, rounding the result towards positive infinity. - Returns an
u16quotient, rounding the result towards positive infinity. - Returns an
u32quotient, rounding the result towards positive infinity. - Returns an
u64quotient, rounding the result towards positive infinity. - Returns an
u128quotient, rounding the result towards positive infinity. - Returns an
usizequotient, rounding the result towards positive infinity. - Returns an
i8quotient, rounding the result towards negative infinity. - Returns an
i16quotient, rounding the result towards negative infinity. - Returns an
i32quotient, rounding the result towards negative infinity. - Returns an
i64quotient, rounding the result towards negative infinity. - Returns an
i128quotient, rounding the result towards negative infinity. - Returns an
isizequotient, rounding the result towards negative infinity. - Returns a
u8quotient, rounding the result towards negative infinity. - Returns a
u16quotient, rounding the result towards negative infinity. - Returns a
u32quotient, rounding the result towards negative infinity. - Returns a
u64quotient, rounding the result towards negative infinity. - Returns a
u128quotient, rounding the result towards negative infinity. - Returns a
usizequotient, rounding the result towards negative infinity. - Returns an
i8quotient, rounding half away from zero. - Returns an
i16quotient, rounding half away from zero. - Returns an
i32quotient, rounding half away from zero. - Returns an
i64quotient, rounding half away from zero. - Returns an
i128quotient, rounding half away from zero. - Returns an
isizequotient, rounding half away from zero. - Returns a
u8quotient, rounding half away from zero. - Returns a
u16quotient, rounding half away from zero. - Returns a
u32quotient, rounding half away from zero. - Returns a
u64quotient, rounding half away from zero. - Returns a
u128quotient, rounding half away from zero. - Returns a
usizequotient, rounding half away from zero. - Returns an
i8quotient, rounding half to the nearest odd number. - Returns an
i16quotient, rounding half to the nearest odd number. - Returns an
i32quotient, rounding half to the nearest odd number. - Returns an
i64quotient, rounding half to the nearest odd number. - Returns an
i128quotient, rounding half to the nearest odd number. - Returns an
isizequotient, rounding half to the nearest odd number. - Returns a
u8quotient, rounding half to the nearest even number. - Returns a
u16quotient, rounding half to the nearest even number. - Returns a
u32quotient, rounding half to the nearest even number. - Returns a
u64quotient, rounding half to the nearest even number. - Returns a
u128quotient, rounding half to the nearest even number. - Returns a
usizequotient, rounding half to the nearest even number. - Returns an
i8quotient, rounding half to the nearest odd number. - Returns an
i16quotient, rounding half to the nearest odd number. - Returns an
i32quotient, rounding half to the nearest odd number. - Returns an
i64quotient, rounding half to the nearest odd number. - Returns an
i128quotient, rounding half to the nearest odd number. - Returns an
isizequotient, rounding half to the nearest odd number. - Returns a
u8quotient, rounding half to the nearest odd number. - Returns a
u16quotient, rounding half to the nearest odd number. - Returns a
u32quotient, rounding half to the nearest odd number. - Returns a
u64quotient, rounding half to the nearest odd number. - Returns a
u128quotient, rounding half to the nearest odd number. - Returns a
usizequotient, rounding half to the nearest odd number. - Returns an
i8quotient, rounding half towards zero. - Returns an
i16quotient, rounding half towards zero. - Returns an
i32quotient, rounding half towards zero. - Returns an
i64quotient, rounding half towards zero. - Returns an
i128quotient, rounding half towards zero. - Returns an
isizequotient, rounding half towards zero. - Returns a
u8quotient, rounding half towards from zero. - Returns a
u16quotient, rounding half towards from zero. - Returns a
u32quotient, rounding half towards from zero. - Returns a
u64quotient, rounding half towards from zero. - Returns a
u128quotient, rounding half towards from zero. - Returns a
usizequotient, rounding half towards from zero. - Returns an
i8truncated quotient, and the remainder. - Returns an
i16truncated quotient, and the remainder. - Returns an
i32truncated quotient, and the remainder. - Returns an
i64truncated quotient, and the remainder. - Returns an
i128truncated quotient, and the remainder. - Returns an
isizetruncated quotient, and the remainder. - Returns a
u8truncated quotient, and the remainder. - Returns a
u16truncated quotient, and the remainder. - Returns a
u32truncated quotient, and the remainder. - Returns a
u64truncated quotient, and the remainder. - Returns a
u128truncated quotient, and the remainder. - Returns a
usizetruncated quotient, and the remainder. - factors_i8
allocReturns the factors of ani8(including 1 and itself). - factors_i16
allocReturns the factors of ani16(including 1 and itself). - factors_i32
allocReturns the factors of ani32(including 1 and itself). - factors_i64
allocReturns the factors of ani64(including 1 and itself). - factors_i128
allocReturns the factors of ani128(including 1 and itself). - factors_isize
allocReturns the factors of anisize(including 1 and itself). - factors_prime_i8
allocReturns the prime factors of ani8. - Writes the prime factors of an
i8in the givenbuffer. - factors_prime_i16
allocReturns the prime factors of ani16. - Writes the prime factors of an
i16in the givenbuffer. - factors_prime_i32
allocReturns the prime factors of ani32. - Writes the prime factors of an
i32in the givenbuffer. - factors_prime_i64
allocReturns the prime factors of ani64. - Writes the prime factors of an
i64in the givenbuffer. - factors_prime_i128
allocReturns the prime factors of ani128. - Writes the prime factors of an
i128in the givenbuffer. - factors_prime_isize
allocReturns the prime factors of anisize. - Writes the prime factors of an
isizein the givenbuffer. - factors_prime_u8
allocReturns the prime factors of au8. - Writes the prime factors of a
u8in the givenbuffer. - factors_prime_u16
allocReturns the prime factors of au16. - Writes the prime factors of a
u16in the givenbuffer. - factors_prime_u32
allocReturns the prime factors of au32. - Writes the prime factors of a
u32in the givenbuffer. - factors_prime_u64
allocReturns the prime factors of au64. - Writes the prime factors of a
u64in the givenbuffer. - factors_prime_u128
allocReturns the prime factors of au128. - Writes the prime factors of a
u128in the givenbuffer. - Returns the unique prime factors of an
i8. - Writes the prime factors of an
i8in the givenbuffer. - Returns the unique prime factors of an
i16. - Writes the prime factors of an
i16in the givenbuffer. - Returns the unique prime factors of an
i32. - Writes the prime factors of an
i32in the givenbuffer. - Returns the unique prime factors of an
i64. - Writes the prime factors of an
i64in the givenbuffer. - Returns the unique prime factors of an
i128. - Writes the prime factors of an
i128in the givenbuffer. - Returns the unique prime factors of an
isize. - Writes the prime factors of an
isizein the givenbuffer. - Returns the unique prime factors of a
u8. - Writes the prime factors of a
u8in the givenbuffer. - Returns the unique prime factors of a
u16. - Writes the prime factors of a
u16in the givenbuffer. - Returns the unique prime factors of a
u32. - Writes the prime factors of a
u32in the givenbuffer. - Returns the unique prime factors of a
u64. - Writes the prime factors of a
u64in the givenbuffer. - Returns the unique prime factors of a
u128. - Writes the prime factors of a
u128in the givenbuffer. - Returns the unique prime factors of a
usize. - Writes the prime factors of a
usizein the givenbuffer. - factors_prime_usize
allocReturns the prime factors of ausize. - Writes the prime factors of a
usizein the givenbuffer. - factors_proper_i8
allocReturns the proper factors of ani8. - factors_proper_i16
allocReturns the proper factors of ani16. - factors_proper_i32
allocReturns the proper factors of ani32. - factors_proper_i64
allocReturns the proper factors of ani64. - factors_proper_i128
allocReturns the proper factors of ani128. - factors_proper_isize
allocReturns the proper factors of anisize. - factors_proper_u8
allocReturns the proper factors of au8. - factors_proper_u16
allocReturns the proper factors of au16. - factors_proper_u32
allocReturns the proper factors of au32. - factors_proper_u64
allocReturns the proper factors of au64. - factors_proper_u128
allocReturns the proper factors of au128. - factors_proper_usize
allocReturns the proper factors of ausize. - factors_u8
allocReturns the factors of au8(including 1 and itself). - factors_u16
allocReturns the factors of au16(including 1 and itself). - factors_u32
allocReturns the factors of au32(including 1 and itself). - factors_u64
allocReturns the factors of au64(including 1 and itself). - factors_u128
allocReturns the factors of au128(including 1 and itself). - factors_usize
allocReturns the factors of ausize(including 1 and itself). - Returns the GCD of two
i8, and the Bézout coeficients. - Returns the GCD of two
i16, and the Bézout coeficients. - Returns the GCD of two
i32, and the Bézout coeficients. - Returns the GCD of two
i64, and the Bézout coeficients. - Returns the GCD of two
i128, and the Bézout coeficients. - Returns the GCD of two
isize, and the Bézout coeficients. - Returns the GCD of two
i8, and the Bézout coeficients. - Returns the GCD of two
i16, and the Bézout coeficients. - Returns the GCD of two
i32, and the Bézout coeficients. - Returns the GCD of two
i64, and the Bézout coeficients. - Returns the GCD of two
i128, and the Bézout coeficients. - Returns the GCD of two
isize, and the Bézout coeficients. - Returns the GCD of two
i8. - Returns the GCD of two
i16. - Returns the GCD of two
i32. - Returns the GCD of two
i64. - Returns the GCD of two
i128. - Returns the GCD of two
isize. - Returns the GCD of two
u8. - Returns the GCD of two
u16. - Returns the GCD of two
u32. - Returns the GCD of two
u64. - Returns the GCD of two
u128. - Returns the GCD of two
usize. - Returns the LCM of two
i8. - Returns the LCM of two
i16. - Returns the LCM of two
i32. - Returns the LCM of two
i64. - Returns the LCM of two
i128. - Returns the LCM of two
isize. - Returns the LCM of two
u8. - Returns the LCM of two
u16. - Returns the LCM of two
u32. - Returns the LCM of two
u64. - Returns the LCM of two
u128. - Returns the LCM of two
usize. - Sorts a
sliceusing bubble sort. - Returns a copied sorted array of
i8using bubble sort. - Returns a copied sorted array of
i16using bubble sort. - Returns a copied sorted array of
i32using bubble sort. - Returns a copied sorted array of
i64using bubble sort. - Returns a copied sorted array of
i128using bubble sort. - Returns a copied sorted array of
isizeusing bubble sort. - Returns a copied sorted array of
u8using bubble sort. - Returns a copied sorted array of
u16using bubble sort. - Returns a copied sorted array of
u32using bubble sort. - Returns a copied sorted array of
u64using bubble sort. - Returns a copied sorted array of
u128using bubble sort. - Returns a copied sorted array of
usizeusing bubble sort. - sort_counting
allocSorts asliceusing counting sort, and returns the ordered frequencies. - Sorts a
sliceusing counting sort, and writes the frequencies, without allocating. - Sorts a
sliceusing insertion sort. - Returns a copied sorted array of
i8using insertion sort. - Returns a copied sorted array of
i16using insertion sort. - Returns a copied sorted array of
i32using insertion sort. - Returns a copied sorted array of
i64using insertion sort. - Returns a copied sorted array of
i128using insertion sort. - Returns a copied sorted array of
isizeusing insertion sort. - Returns a copied sorted array of
u8using insertion sort. - Returns a copied sorted array of
u16using insertion sort. - Returns a copied sorted array of
u32using insertion sort. - Returns a copied sorted array of
u64using insertion sort. - Returns a copied sorted array of
u128using insertion sort. - Returns a copied sorted array of
usizeusing insertion sort. - sort_merge
allocSorts asliceusing merge sort. - Sorts a
sliceusing quick sort with the Three way partition scheme. - Sorts a
sliceusing quick sort with the Hoare partition scheme. - Sorts a
sliceusing quick sort with the Lomuto partition scheme. - Sorts a
sliceusing selection sort. - Returns a copied sorted array of
i8using selection sort. - Returns a copied sorted array of
i16using selection sort. - Returns a copied sorted array of
i32using selection sort. - Returns a copied sorted array of
i64using selection sort. - Returns a copied sorted array of
i128using selection sort. - Returns a copied sorted array of
isizeusing selection sort. - Returns a copied sorted array of
u8using selection sort. - Returns a copied sorted array of
u16using selection sort. - Returns a copied sorted array of
u32using selection sort. - Returns a copied sorted array of
u64using selection sort. - Returns a copied sorted array of
u128using selection sort. - Returns a copied sorted array of
usizeusing selection sort. - Sorts a
sliceusing shaker sort. - Returns an
i8ceiled integer square root. - Returns an
i16ceiled integer square root. - Returns an
i32ceiled integer square root. - Returns an
i64ceiled integer square root. - Returns an
i128ceiled integer square root. - Returns an
isizeceiled integer square root. - Returns an
u8ceiled integer square root. - Returns an
u16ceiled integer square root. - Returns an
u32ceiled integer square root. - Returns an
u64ceiled integer square root. - Returns an
u128ceiled integer square root. - Returns an
usizeceiled integer square root. - Returns an
i8floored integer square root. - Returns an
i16floored integer square root. - Returns an
i32floored integer square root. - Returns an
i64floored integer square root. - Returns an
i128floored integer square root. - Returns an
isizefloored integer square root. - Returns a
u8floored integer square root. - Returns a
u16floored integer square root. - Returns a
u32floored integer square root. - Returns a
u64floored integer square root. - Returns a
u128floored integer square root. - Returns a
usizefloored integer square root. - Returns an
i8rounded integer square root. - Returns an
i16rounded integer square root. - Returns an
i32rounded integer square root. - Returns an
i64rounded integer square root. - Returns an
i128rounded integer square root. - Returns an
isizerounded integer square root. - Returns an
u8rounded integer square root. - Returns an
u16rounded integer square root. - Returns an
u32rounded integer square root. - Returns an
u64rounded integer square root. - Returns an
u128rounded integer square root. - Returns an
usizerounded integer square root. - Returns
trueif ani8is a perfect square. - Returns
trueif ani16is a perfect square. - Returns
trueif ani32is a perfect square. - Returns
trueif ani64is a perfect square. - Returns
trueif ani128is a perfect square. - Returns
trueif anisizeis a perfect square. - Returns
trueif au8is a perfect square. - Returns
trueif au16is a perfect square. - Returns
trueif au32is a perfect square. - Returns
trueif au64is a perfect square. - Returns
trueif au128is a perfect square. - Returns
trueif ausizeis a perfect square.