Trait dimensioned::dimensioned::Cbrt [] [src]

pub trait Cbrt {
    type Output;
    fn cbrt(self) -> Self::Output;
}

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

Associated Types

type Output

Required Methods

fn cbrt(self) -> Self::Output

Take a cube root.

Example

use dimensioned::si::m;
use dimensioned::Cbrt;

let x = 2.0*m;
let y = 8.0*m*m*m;
assert_eq!(x, y.cbrt());

Implementors