Trait grafix_toolbox::math::Precise

source ·
pub trait Precise {
    // Required methods
    fn mix(self, a: f32, r: Self) -> Self;
    fn root(self) -> Self;
    fn is_zero(self) -> bool;
}

Required Methods§

source

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

source

fn root(self) -> Self

source

fn is_zero(self) -> bool

Object Safety§

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§

fn is_zero(self) -> bool

source§

impl Precise for f64

source§

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

source§

fn root(self) -> Self

source§

fn is_zero(self) -> bool

source§

impl Precise for i8

source§

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

source§

fn root(self) -> Self

source§

fn is_zero(self) -> bool

source§

impl Precise for i16

source§

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

source§

fn root(self) -> Self

source§

fn is_zero(self) -> bool

source§

impl Precise for i32

source§

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

source§

fn root(self) -> Self

source§

fn is_zero(self) -> bool

source§

impl Precise for i64

source§

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

source§

fn root(self) -> Self

source§

fn is_zero(self) -> bool

source§

impl Precise for i128

source§

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

source§

fn root(self) -> Self

source§

fn is_zero(self) -> bool

source§

impl Precise for isize

source§

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

source§

fn root(self) -> Self

source§

fn is_zero(self) -> bool

source§

impl Precise for u8

source§

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

source§

fn root(self) -> Self

source§

fn is_zero(self) -> bool

source§

impl Precise for u16

source§

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

source§

fn root(self) -> Self

source§

fn is_zero(self) -> bool

source§

impl Precise for u32

source§

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

source§

fn root(self) -> Self

source§

fn is_zero(self) -> bool

source§

impl Precise for u64

source§

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

source§

fn root(self) -> Self

source§

fn is_zero(self) -> bool

source§

impl Precise for u128

source§

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

source§

fn root(self) -> Self

source§

fn is_zero(self) -> bool

source§

impl Precise for usize

source§

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

source§

fn root(self) -> Self

source§

fn is_zero(self) -> bool

Implementors§