PowIntExponent

Trait PowIntExponent 

Source
pub trait PowIntExponent:
    Pow<i8, Error = PowIntExponentErrors<Self::RawType, i8>>
    + Pow<u8, Error = PowIntExponentErrors<Self::RawType, u8>>
    + Pow<i16, Error = PowIntExponentErrors<Self::RawType, i16>>
    + Pow<u16, Error = PowIntExponentErrors<Self::RawType, u16>>
    + Pow<i32, Error = PowIntExponentErrors<Self::RawType, i32>>
    + Pow<u32, Error = PowIntExponentErrors<Self::RawType, u32>>
    + Pow<i64, Error = PowIntExponentErrors<Self::RawType, i64>>
    + Pow<u64, Error = PowIntExponentErrors<Self::RawType, u64>>
    + Pow<i128, Error = PowIntExponentErrors<Self::RawType, i128>>
    + Pow<u128, Error = PowIntExponentErrors<Self::RawType, u128>>
    + Pow<isize, Error = PowIntExponentErrors<Self::RawType, isize>>
    + Pow<usize, Error = PowIntExponentErrors<Self::RawType, usize>> {
    type RawType: RawScalarTrait;
}
Expand description

An aggregate trait for types that can be raised to the power of any primitive integer.

Required Associated Types§

Source

type RawType: RawScalarTrait

The underlying raw scalar type for this integer-exponent power implementation.

For f64, this is f64. For Complex<f64>, this is Complex<f64>.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl PowIntExponent for f64

Source§

impl PowIntExponent for Complex<f64>

Implementors§