Skip to main content

Real

Trait Real 

Source
trait Real:
    Copy
    + PartialOrd
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self> {
    const ZERO: Self;
    const ONE: Self;
    const TWO: Self;

    // Required methods
    fn from_f64(x: f64) -> Self;
    fn to_f64(self) -> f64;
    fn abs(self) -> Self;
}
Expand description

The arithmetic mexMGv6’s steps need, in f32 (its own) or f64.

Required Associated Constants§

Source

const ZERO: Self

Source

const ONE: Self

Source

const TWO: Self

Required Methods§

Source

fn from_f64(x: f64) -> Self

Source

fn to_f64(self) -> f64

Source

fn abs(self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Real for f32

Source§

const ZERO: Self = 0.0

Source§

const ONE: Self = 1.0

Source§

const TWO: Self = 2.0

Source§

fn from_f64(x: f64) -> Self

Source§

fn to_f64(self) -> f64

Source§

fn abs(self) -> Self

Source§

impl Real for f64

Source§

const ZERO: Self = 0.0

Source§

const ONE: Self = 1.0

Source§

const TWO: Self = 2.0

Source§

fn from_f64(x: f64) -> Self

Source§

fn to_f64(self) -> f64

Source§

fn abs(self) -> Self

Implementors§