Trait dimensioned::traits::Cbrt [−][src]
Cbrt
provides a cbrt
member function for types that are not necessarily preserved under
cube root.
This is not currently implemented for built-in floating point types unless you are using std
.
Example
extern crate dimensioned as dim; fn main() { use dim::si; let x = 2.0 * si::M; let v = 8.0 * si::M3; use dim::Cbrt; #[cfg(feature = "std")] assert_eq!(v.cbrt(), x); }
Associated Types
type Output
The resulting type after taking the cube root
Required Methods
Implementations on Foreign Types
impl Cbrt for f32
[src]
impl Cbrt for f32
impl Cbrt for f64
[src]
impl Cbrt for f64
Implementors
impl<V, U> Cbrt for SI<V, U> where
V: Cbrt,
U: PartialDiv<P3>, type Output = SI<<V as Cbrt>::Output, PartialQuot<U, P3>>;impl<V, U> Cbrt for UCUM<V, U> where
V: Cbrt,
U: PartialDiv<P3>, type Output = UCUM<<V as Cbrt>::Output, PartialQuot<U, P3>>;impl<V, U> Cbrt for MKS<V, U> where
V: Cbrt,
U: PartialDiv<P3>, type Output = MKS<<V as Cbrt>::Output, PartialQuot<U, P3>>;impl<V, U> Cbrt for CGS<V, U> where
V: Cbrt,
U: PartialDiv<P3>, type Output = CGS<<V as Cbrt>::Output, PartialQuot<U, P3>>;impl<V, U> Cbrt for FPS<V, U> where
V: Cbrt,
U: PartialDiv<P3>, type Output = FPS<<V as Cbrt>::Output, PartialQuot<U, P3>>;