Trait dimensioned::dimensioned::Pow [] [src]

pub trait Pow<Base> {
    type Output;
    fn pow(base: Base) -> Self::Output;
}

Generic integer powers using peano numbers. No other types should implement it. Example: let x = 2.0*m; assert_eq!(x*x, Two::pow(x));

Associated Types

type Output

Required Methods

fn pow(base: Base) -> Self::Output

Implementors