Trait CubicRoot

Source
pub trait CubicRoot {
    type Output;

    // Required method
    fn cbrt(&self) -> Self::Output;
}
Expand description

Compute the cubic root of the number.

The result should be rounded towards zero by default.

§Examples

assert_eq!(216u32.cbrt(), 6);
assert_eq!(217u32.cbrt(), 6);

Required Associated Types§

Required Methods§

Source

fn cbrt(&self) -> Self::Output

Implementations on Foreign Types§

Source§

impl CubicRoot for u8

Source§

type Output = u8

Source§

fn cbrt(&self) -> <u8 as CubicRoot>::Output

Source§

impl CubicRoot for u16

Source§

type Output = u8

Source§

fn cbrt(&self) -> u8

Source§

impl CubicRoot for u32

Source§

type Output = u16

Source§

fn cbrt(&self) -> u16

Source§

impl CubicRoot for u64

Source§

type Output = u32

Source§

fn cbrt(&self) -> u32

Source§

impl CubicRoot for u128

Source§

type Output = u64

Source§

fn cbrt(&self) -> u64

Source§

impl CubicRoot for IBig

Source§

impl CubicRoot for UBig

Implementors§