pub trait IntegerCubeRoot {
// Required method
fn integer_cbrt_checked(&self) -> Option<Self>
where Self: Sized;
// Provided method
fn integer_cbrt(&self) -> Self
where Self: Sized { ... }
}
Expand description
A trait implementing integer cube root.
Required Methods§
Sourcefn integer_cbrt_checked(&self) -> Option<Self>where
Self: Sized,
fn integer_cbrt_checked(&self) -> Option<Self>where
Self: Sized,
Find the integer cube root, returning None
if the number is negative (this can never
happen for unsigned types).
Provided Methods§
Sourcefn integer_cbrt(&self) -> Selfwhere
Self: Sized,
fn integer_cbrt(&self) -> Selfwhere
Self: Sized,
Find the integer cube root.
§Panics
For negative numbers (i
family) this function will panic on negative input