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);