Lines Matching full:pow
7 use num_traits::{Pow, Signed, Zero};
9 /// Help function for pow
25 impl Pow<$T> for BigInt {
29 fn pow(self, rhs: $T) -> BigInt {
30 BigInt::from_biguint(powsign(self.sign, &rhs), self.data.pow(rhs))
34 impl Pow<&$T> for BigInt {
38 fn pow(self, rhs: &$T) -> BigInt {
39 BigInt::from_biguint(powsign(self.sign, rhs), self.data.pow(rhs))
43 impl Pow<$T> for &BigInt { impl
47 fn pow(self, rhs: $T) -> BigInt {
48 BigInt::from_biguint(powsign(self.sign, &rhs), Pow::pow(&self.data, rhs))
52 impl Pow<&$T> for &BigInt { impl
56 fn pow(self, rhs: &$T) -> BigInt {
57 BigInt::from_biguint(powsign(self.sign, rhs), Pow::pow(&self.data, rhs))