Trait figures::Roots

source ·
pub trait Roots {
    // Required methods
    fn sqrt(self) -> Self;
    fn cbrt(self) -> Self;
}
Expand description

Functionality for getting the root of a number.

Required Methods§

source

fn sqrt(self) -> Self

Returns the square root of self.

source

fn cbrt(self) -> Self

Returns the cube root of self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Roots for f32

source§

fn sqrt(self) -> Self

source§

fn cbrt(self) -> Self

Implementors§