Pow

Trait Pow 

Source
pub trait Pow: Sized {
    type Output;

    // Required method
    fn pow(self, index: i64) -> Self::Output;

    // Provided methods
    fn square(self) -> Self::Output { ... }
    fn cubic(self) -> Self::Output { ... }
}

Required Associated Types§

Required Methods§

Source

fn pow(self, index: i64) -> Self::Output

Provided Methods§

Source

fn square(self) -> Self::Output

Source

fn cubic(self) -> Self::Output

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 Pow for f32

Source§

type Output = f32

Source§

fn pow(self, index: i64) -> f32

Source§

impl Pow for f64

Source§

type Output = f64

Source§

fn pow(self, index: i64) -> f64

Source§

impl Pow for i8

Source§

type Output = i8

Source§

fn pow(self, index: i64) -> i8

Source§

impl Pow for i16

Source§

type Output = i16

Source§

fn pow(self, index: i64) -> i16

Source§

impl Pow for i32

Source§

type Output = i32

Source§

fn pow(self, index: i64) -> i32

Source§

impl Pow for i64

Source§

type Output = i64

Source§

fn pow(self, index: i64) -> i64

Source§

impl Pow for i128

Source§

type Output = i128

Source§

fn pow(self, index: i64) -> i128

Source§

impl Pow for isize

Source§

type Output = isize

Source§

fn pow(self, index: i64) -> isize

Source§

impl Pow for u8

Source§

type Output = u8

Source§

fn pow(self, index: i64) -> u8

Source§

impl Pow for u16

Source§

type Output = u16

Source§

fn pow(self, index: i64) -> u16

Source§

impl Pow for u32

Source§

type Output = u32

Source§

fn pow(self, index: i64) -> u32

Source§

impl Pow for u64

Source§

type Output = u64

Source§

fn pow(self, index: i64) -> u64

Source§

impl Pow for u128

Source§

type Output = u128

Source§

fn pow(self, index: i64) -> u128

Source§

impl Pow for usize

Source§

type Output = usize

Source§

fn pow(self, index: i64) -> usize

Implementors§