Trait dimensioned::traits::Cbrt
[−]
[src]
pub trait Cbrt { type Output; fn cbrt(self) -> Self::Output; }
Cbrt
provides a cbrt
member function for types that are not necessarily preserved under
cube root.
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; assert_eq!(v.cbrt(), x); }
Associated Types
type Output
The resulting type after taking the cube root
Required Methods
Implementors
impl<V, U> Cbrt for SI<V, U> where
V: Cbrt,
U: PartialDiv<P3>,impl<V, U> Cbrt for UCUM<V, U> where
V: Cbrt,
U: PartialDiv<P3>,impl<V, U> Cbrt for MKS<V, U> where
V: Cbrt,
U: PartialDiv<P3>,impl<V, U> Cbrt for CGS<V, U> where
V: Cbrt,
U: PartialDiv<P3>,impl<V, U> Cbrt for FPS<V, U> where
V: Cbrt,
U: PartialDiv<P3>,impl Cbrt for f32
impl Cbrt for f64