A trait for computing the square root of a number.

Signature

pub trait Sqrt

Examples

use core::num::traits::Sqrt;

assert!(9_u8.sqrt() == 3);

Trait functions

sqrt

Computes the square root of a number.

Signature

fn sqrt(self: T) -> SqrtTarget

Trait types

Target

The type of the result of the square root operation.

Signature

type Target;