Trait Real

Source
pub trait Real:
    Field
    + SignedExt
    + Exp
    + Sqrt
    + Trig
    + MinMax {
    // Required methods
    fn pi() -> Self;
    fn frac_pi_3() -> Self;
    fn sqrt_3() -> Self;
    fn frac_1_sqrt_3() -> Self;
    fn floor(self) -> Self;
    fn ceil(self) -> Self;
    fn trunc(self) -> Self;
    fn fract(self) -> Self;
}
Expand description

Field with special functions and partial ordering

Required Methods§

Source

fn pi() -> Self

Source

fn frac_pi_3() -> Self

Source

fn sqrt_3() -> Self

Source

fn frac_1_sqrt_3() -> Self

Source

fn floor(self) -> Self

Source

fn ceil(self) -> Self

Source

fn trunc(self) -> Self

Source

fn fract(self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Real for f32

Source§

fn pi() -> Self

Source§

fn frac_pi_3() -> Self

Source§

fn sqrt_3() -> Self

Source§

fn frac_1_sqrt_3() -> Self

Source§

fn floor(self) -> Self

Source§

fn ceil(self) -> Self

Source§

fn trunc(self) -> Self

Source§

fn fract(self) -> Self

Source§

impl Real for f64

Source§

fn pi() -> Self

Source§

fn frac_pi_3() -> Self

Source§

fn sqrt_3() -> Self

Source§

fn frac_1_sqrt_3() -> Self

Source§

fn floor(self) -> Self

Source§

fn ceil(self) -> Self

Source§

fn trunc(self) -> Self

Source§

fn fract(self) -> Self

Source§

impl<U> Real for FixedI8<U>
where U: Unsigned + IsLessOrEqual<U6, Output = True> + IsLessOrEqual<U5, Output = True> + LtU8,

Source§

fn pi() -> Self

Source§

fn frac_pi_3() -> Self

Source§

fn sqrt_3() -> Self

Source§

fn frac_1_sqrt_3() -> Self

Source§

fn floor(self) -> Self

Source§

fn ceil(self) -> Self

Source§

fn trunc(self) -> Self

Source§

fn fract(self) -> Self

Source§

impl<U> Real for FixedI16<U>
where U: Unsigned + IsLessOrEqual<U14, Output = True> + IsLessOrEqual<U13, Output = True> + LtU16,

Source§

fn pi() -> Self

Source§

fn frac_pi_3() -> Self

Source§

fn sqrt_3() -> Self

Source§

fn frac_1_sqrt_3() -> Self

Source§

fn floor(self) -> Self

Source§

fn ceil(self) -> Self

Source§

fn trunc(self) -> Self

Source§

fn fract(self) -> Self

Source§

impl<U> Real for FixedI32<U>
where U: Unsigned + IsLessOrEqual<U30, Output = True> + IsLessOrEqual<U29, Output = True> + LtU32,

Source§

fn pi() -> Self

Source§

fn frac_pi_3() -> Self

Source§

fn sqrt_3() -> Self

Source§

fn frac_1_sqrt_3() -> Self

Source§

fn floor(self) -> Self

Source§

fn ceil(self) -> Self

Source§

fn trunc(self) -> Self

Source§

fn fract(self) -> Self

Source§

impl<U> Real for FixedI64<U>
where U: Unsigned + IsLessOrEqual<U62, Output = True> + IsLessOrEqual<U61, Output = True> + LtU64,

Source§

fn pi() -> Self

Source§

fn frac_pi_3() -> Self

Source§

fn sqrt_3() -> Self

Source§

fn frac_1_sqrt_3() -> Self

Source§

fn floor(self) -> Self

Source§

fn ceil(self) -> Self

Source§

fn trunc(self) -> Self

Source§

fn fract(self) -> Self

Implementors§