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
impl<D, V> Recip for Dim<D, V> where D: Dimension + Recip, V: Float, D::Output: Dimensionimpl<Meter, Kilogram, Second, Ampere, Kelvin, Candela, Mole> Recip for SI<Meter, Kilogram, Second, Ampere, Kelvin, Candela, Mole> where Meter: Peano + Neg, Kilogram: Peano + Neg, Second: Peano + Neg, Ampere: Peano + Neg, Kelvin: Peano + Neg, Candela: Peano + Neg, Mole: Peano + Neg, Meter::Output: Peano, Kilogram::Output: Peano, Second::Output: Peano, Ampere::Output: Peano, Kelvin::Output: Peano, Candela::Output: Peano, Mole::Output: Peanoimpl<Centimeter, Gram, Second> Recip for CGS<Centimeter, Gram, Second> where Centimeter: Peano + Neg, Gram: Peano + Neg, Second: Peano + Neg, Centimeter::Output: Peano, Gram::Output: Peano, Second::Output: Peano