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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".