robo::math

Trait FloatApproximately

Source
pub trait FloatApproximately<T>
where T: Float,
{ // Required method fn approximately(&self, other: &Self) -> bool; }
Expand description

浮動小数点数の近似等価演算

Required Methods§

Source

fn approximately(&self, other: &Self) -> bool

2つの浮動小数点数がおおよそ等しいかを返す。

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

Source§

fn approximately(&self, other: &Self) -> bool

Source§

impl FloatApproximately<f64> for f64

Source§

fn approximately(&self, other: &Self) -> bool

Implementors§