Trait IntegerOps

Source
pub trait IntegerOps<T: Integer> {
    // Required method
    fn pow(a: Self, exp: u32) -> Self;
}
Expand description

operations applicable to integer types

Required Methods§

Source

fn pow(a: Self, exp: u32) -> Self

returns value a raised to unsigned integer power exp

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 IntegerOps<i8> for i8

Source§

fn pow(v: Self, exp: u32) -> Self

Source§

impl IntegerOps<i16> for i16

Source§

fn pow(v: Self, exp: u32) -> Self

Source§

impl IntegerOps<i32> for i32

Source§

fn pow(v: Self, exp: u32) -> Self

Source§

impl IntegerOps<i64> for i64

Source§

fn pow(v: Self, exp: u32) -> Self

Source§

impl IntegerOps<u8> for u8

Source§

fn pow(v: Self, exp: u32) -> Self

Source§

impl IntegerOps<u16> for u16

Source§

fn pow(v: Self, exp: u32) -> Self

Source§

impl IntegerOps<u32> for u32

Source§

fn pow(v: Self, exp: u32) -> Self

Source§

impl IntegerOps<u64> for u64

Source§

fn pow(v: Self, exp: u32) -> Self

Implementors§

Source§

impl<T> IntegerOps<T> for Vec2<T>
where T: Integer + IntegerOps<T>,

Source§

impl<T> IntegerOps<T> for Vec3<T>
where T: Integer + IntegerOps<T>,

Source§

impl<T> IntegerOps<T> for Vec4<T>
where T: Integer + IntegerOps<T>,