[−][src]Trait airmash_protocol::Sqrt
Sqrt
provides a sqrt
member function for types that are not necessarily preserved under
square root.
Example
extern crate dimensioned as dim; fn main() { use dim::si; let x = 2.0 * si::M; let a = 4.0 * si::M2; use dim::Sqrt; assert_eq!(a.sqrt(), x); }
Associated Types
type Output
The resulting type after taking the square root
Required methods
Loading content...Implementations on Foreign Types
impl Sqrt for f64
[src]
impl Sqrt for f64
impl<V, U> Sqrt for SI<V, U> where
U: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
V: Sqrt,
[src]
impl<V, U> Sqrt for SI<V, U> where
U: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
V: Sqrt,
type Output = SI<<V as Sqrt>::Output, <U as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output>
fn sqrt(self) -> <SI<V, U> as Sqrt>::Output | [src] |
impl<V, U> Sqrt for MKS<V, U> where
U: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
V: Sqrt,
[src]
impl<V, U> Sqrt for MKS<V, U> where
U: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
V: Sqrt,
type Output = MKS<<V as Sqrt>::Output, <U as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output>
fn sqrt(self) -> <MKS<V, U> as Sqrt>::Output | [src] |
impl<V, U> Sqrt for UCUM<V, U> where
U: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
V: Sqrt,
[src]
impl<V, U> Sqrt for UCUM<V, U> where
U: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
V: Sqrt,
type Output = UCUM<<V as Sqrt>::Output, <U as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output>
fn sqrt(self) -> <UCUM<V, U> as Sqrt>::Output | [src] |
impl<V, U> Sqrt for FPS<V, U> where
U: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
V: Sqrt,
[src]
impl<V, U> Sqrt for FPS<V, U> where
U: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
V: Sqrt,
type Output = FPS<<V as Sqrt>::Output, <U as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output>
fn sqrt(self) -> <FPS<V, U> as Sqrt>::Output | [src] |
impl Sqrt for f32
[src]
impl Sqrt for f32
impl<V, U> Sqrt for CGS<V, U> where
U: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
V: Sqrt,
[src]
impl<V, U> Sqrt for CGS<V, U> where
U: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
V: Sqrt,
type Output = CGS<<V as Sqrt>::Output, <U as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output>
fn sqrt(self) -> <CGS<V, U> as Sqrt>::Output | [src] |
Implementors
impl<V, U> Sqrt for AirmashUnits<V, U> where
V: Sqrt,
U: PartialDiv<P2>,
impl<V, U> Sqrt for AirmashUnits<V, U> where
V: Sqrt,
U: PartialDiv<P2>,