Trait Precise

Source
pub trait Precise: Default + PartialEq {
    // Required methods
    fn mix(self, a: f32, r: Self) -> Self;
    fn root(self) -> Self;

    // Provided method
    fn is_zero(&self) -> bool { ... }
}

Required Methods§

Source

fn mix(self, a: f32, r: Self) -> Self

Source

fn root(self) -> Self

Provided Methods§

Source

fn is_zero(&self) -> bool

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 Precise for f32

Source§

fn mix(self, a: f32, r: Self) -> Self

Source§

fn root(self) -> Self

Source§

impl Precise for f64

Source§

fn mix(self, a: f32, r: Self) -> Self

Source§

fn root(self) -> Self

Source§

impl Precise for i8

Source§

fn mix(self, a: f32, r: Self) -> Self

Source§

fn root(self) -> Self

Source§

impl Precise for i16

Source§

fn mix(self, a: f32, r: Self) -> Self

Source§

fn root(self) -> Self

Source§

impl Precise for i32

Source§

fn mix(self, a: f32, r: Self) -> Self

Source§

fn root(self) -> Self

Source§

impl Precise for i64

Source§

fn mix(self, a: f32, r: Self) -> Self

Source§

fn root(self) -> Self

Source§

impl Precise for i128

Source§

fn mix(self, a: f32, r: Self) -> Self

Source§

fn root(self) -> Self

Source§

impl Precise for isize

Source§

fn mix(self, a: f32, r: Self) -> Self

Source§

fn root(self) -> Self

Source§

impl Precise for u8

Source§

fn mix(self, a: f32, r: Self) -> Self

Source§

fn root(self) -> Self

Source§

impl Precise for u16

Source§

fn mix(self, a: f32, r: Self) -> Self

Source§

fn root(self) -> Self

Source§

impl Precise for u32

Source§

fn mix(self, a: f32, r: Self) -> Self

Source§

fn root(self) -> Self

Source§

impl Precise for u64

Source§

fn mix(self, a: f32, r: Self) -> Self

Source§

fn root(self) -> Self

Source§

impl Precise for u128

Source§

fn mix(self, a: f32, r: Self) -> Self

Source§

fn root(self) -> Self

Source§

impl Precise for usize

Source§

fn mix(self, a: f32, r: Self) -> Self

Source§

fn root(self) -> Self

Implementors§