Trait dimensioned::dimensioned::Recip [] [src]

pub trait Recip {
    type Output;
    fn recip(self) -> Self::Output;
}

Recip is used for implementing a recip() member for types that don't impl Float.

Associated Types

type Output

Required Methods

fn recip(self) -> Self::Output

Example

use dimensioned::si::s;
use dimensioned::Recip;

let x = 4.0*s;
let y = 0.25/s;
assert_eq!(x, y.recip())

Implementors