Trait maths_rs::num::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

Implementations on Foreign Types§

source§

impl IntegerOps<i64> for i64

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

source§

impl IntegerOps<u8> for u8

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<u16> for u16

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

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>,