RawScalarPow

Trait RawScalarPow 

Source
pub trait RawScalarPow {
    // Required methods
    fn unchecked_pow_exponent_i8(self, exponent: &i8) -> Self;
    fn unchecked_pow_exponent_i16(self, exponent: &i16) -> Self;
    fn unchecked_pow_exponent_i32(self, exponent: &i32) -> Self;
    fn unchecked_pow_exponent_i64(self, exponent: &i64) -> Self;
    fn unchecked_pow_exponent_i128(self, exponent: &i128) -> Self;
    fn unchecked_pow_exponent_isize(self, exponent: &isize) -> Self;
    fn unchecked_pow_exponent_u8(self, exponent: &u8) -> Self;
    fn unchecked_pow_exponent_u16(self, exponent: &u16) -> Self;
    fn unchecked_pow_exponent_u32(self, exponent: &u32) -> Self;
    fn unchecked_pow_exponent_u64(self, exponent: &u64) -> Self;
    fn unchecked_pow_exponent_u128(self, exponent: &u128) -> Self;
    fn unchecked_pow_exponent_usize(self, exponent: &usize) -> Self;
}
Expand description

Trait for unchecked power operations with integer exponents.

Provides power functions for all standard integer types without validation.

Required Methods§

Source

fn unchecked_pow_exponent_i8(self, exponent: &i8) -> Self

Raises self to the power of an i8 exponent without validation.

Contract: The caller must ensure the inputs are valid.

Source

fn unchecked_pow_exponent_i16(self, exponent: &i16) -> Self

Raises self to the power of an i16 exponent without validation.

Contract: The caller must ensure the inputs are valid.

Source

fn unchecked_pow_exponent_i32(self, exponent: &i32) -> Self

Raises self to the power of an i32 exponent without validation.

Contract: The caller must ensure the inputs are valid.

Source

fn unchecked_pow_exponent_i64(self, exponent: &i64) -> Self

Raises self to the power of an i64 exponent without validation.

Contract: The caller must ensure the inputs are valid. For integer powers, this includes ensuring the exponent is within the representable range of the underlying power function (e.g., i32 for f64::powi).

Source

fn unchecked_pow_exponent_i128(self, exponent: &i128) -> Self

Raises self to the power of an i128 exponent without validation.

Contract: The caller must ensure the inputs are valid. For integer powers, this includes ensuring the exponent is within the representable range of the underlying power function (e.g., i32 for f64::powi).

Source

fn unchecked_pow_exponent_isize(self, exponent: &isize) -> Self

Raises self to the power of an isize exponent without validation.

Contract: The caller must ensure the inputs are valid. For integer powers, this includes ensuring the exponent is within the representable range of the underlying power function (e.g., i32 for f64::powi).

Source

fn unchecked_pow_exponent_u8(self, exponent: &u8) -> Self

Raises self to the power of a u8 exponent without validation.

Contract: The caller must ensure the inputs are valid.

Source

fn unchecked_pow_exponent_u16(self, exponent: &u16) -> Self

Raises self to the power of a u16 exponent without validation.

Contract: The caller must ensure the inputs are valid.

Source

fn unchecked_pow_exponent_u32(self, exponent: &u32) -> Self

Raises self to the power of a u32 exponent without validation.

Contract: The caller must ensure the inputs are valid. For integer powers, this includes ensuring the exponent is within the representable range of the underlying power function (e.g., i32 for f64::powi).

Source

fn unchecked_pow_exponent_u64(self, exponent: &u64) -> Self

Raises self to the power of a u64 exponent without validation.

Contract: The caller must ensure the inputs are valid. For integer powers, this includes ensuring the exponent is within the representable range of the underlying power function (e.g., i32 for f64::powi).

Source

fn unchecked_pow_exponent_u128(self, exponent: &u128) -> Self

Raises self to the power of a u128 exponent without validation.

Contract: The caller must ensure the inputs are valid. For integer powers, this includes ensuring the exponent is within the representable range of the underlying power function (e.g., i32 for f64::powi).

Source

fn unchecked_pow_exponent_usize(self, exponent: &usize) -> Self

Raises self to the power of a usize exponent without validation.

Contract: The caller must ensure the inputs are valid. For integer powers, this includes ensuring the exponent is within the representable range of the underlying power function (e.g., i32 for f64::powi).

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 RawScalarPow for f64

Source§

impl RawScalarPow for Complex<f64>

Source§

fn unchecked_pow_exponent_i8(self, exponent: &i8) -> Self

Source§

fn unchecked_pow_exponent_i16(self, exponent: &i16) -> Self

Source§

fn unchecked_pow_exponent_i32(self, exponent: &i32) -> Self

Source§

fn unchecked_pow_exponent_i64(self, exponent: &i64) -> Self

Source§

fn unchecked_pow_exponent_i128(self, exponent: &i128) -> Self

Source§

fn unchecked_pow_exponent_isize(self, exponent: &isize) -> Self

Source§

fn unchecked_pow_exponent_u8(self, exponent: &u8) -> Self

Source§

fn unchecked_pow_exponent_u16(self, exponent: &u16) -> Self

Source§

fn unchecked_pow_exponent_u32(self, exponent: &u32) -> Self

Source§

fn unchecked_pow_exponent_u64(self, exponent: &u64) -> Self

Source§

fn unchecked_pow_exponent_u128(self, exponent: &u128) -> Self

Source§

fn unchecked_pow_exponent_usize(self, exponent: &usize) -> Self

Source§

impl RawScalarPow for Complex

Source§

fn unchecked_pow_exponent_i8(self, exponent: &i8) -> Self

Source§

fn unchecked_pow_exponent_i16(self, exponent: &i16) -> Self

Source§

fn unchecked_pow_exponent_i32(self, exponent: &i32) -> Self

Source§

fn unchecked_pow_exponent_i64(self, exponent: &i64) -> Self

Source§

fn unchecked_pow_exponent_i128(self, exponent: &i128) -> Self

Source§

fn unchecked_pow_exponent_isize(self, exponent: &isize) -> Self

Source§

fn unchecked_pow_exponent_u8(self, exponent: &u8) -> Self

Source§

fn unchecked_pow_exponent_u16(self, exponent: &u16) -> Self

Source§

fn unchecked_pow_exponent_u32(self, exponent: &u32) -> Self

Source§

fn unchecked_pow_exponent_u64(self, exponent: &u64) -> Self

Source§

fn unchecked_pow_exponent_u128(self, exponent: &u128) -> Self

Source§

fn unchecked_pow_exponent_usize(self, exponent: &usize) -> Self

Source§

impl RawScalarPow for Float

Source§

fn unchecked_pow_exponent_i8(self, exponent: &i8) -> Self

Source§

fn unchecked_pow_exponent_i16(self, exponent: &i16) -> Self

Source§

fn unchecked_pow_exponent_i32(self, exponent: &i32) -> Self

Source§

fn unchecked_pow_exponent_i64(self, exponent: &i64) -> Self

Source§

fn unchecked_pow_exponent_i128(self, exponent: &i128) -> Self

Source§

fn unchecked_pow_exponent_isize(self, exponent: &isize) -> Self

Source§

fn unchecked_pow_exponent_u8(self, exponent: &u8) -> Self

Source§

fn unchecked_pow_exponent_u16(self, exponent: &u16) -> Self

Source§

fn unchecked_pow_exponent_u32(self, exponent: &u32) -> Self

Source§

fn unchecked_pow_exponent_u64(self, exponent: &u64) -> Self

Source§

fn unchecked_pow_exponent_u128(self, exponent: &u128) -> Self

Source§

fn unchecked_pow_exponent_usize(self, exponent: &usize) -> Self

Implementors§