[][src]Trait smth::Float

pub trait Float: Signed + From<f32> {
    const HALF: Self;

    fn sqrt(self) -> Self;
fn sin(self) -> Self;
fn cos(self) -> Self;
fn tan(self) -> Self;
fn to_radians(self) -> Self;
fn to_degrees(self) -> Self;
fn powi(self, pow: i32) -> Self; }

Associated Constants

const HALF: Self

Loading content...

Required methods

fn sqrt(self) -> Self

fn sin(self) -> Self

fn cos(self) -> Self

fn tan(self) -> Self

fn to_radians(self) -> Self

fn to_degrees(self) -> Self

fn powi(self, pow: i32) -> Self

Loading content...

Implementations on Foreign Types

impl Float for f32[src]

impl Float for f64[src]

Loading content...

Implementors

Loading content...