[][src]Trait svgtypes::FuzzyEq

pub trait FuzzyEq<Rhs: ?Sized = Self> {
    fn fuzzy_eq(&self, other: &Rhs) -> bool;

    fn fuzzy_ne(&self, other: &Rhs) -> bool { ... }
}

A trait for fuzzy/approximate equality comparisons of float numbers.

Required methods

fn fuzzy_eq(&self, other: &Rhs) -> bool

Returns true if values are approximately equal.

Loading content...

Provided methods

fn fuzzy_ne(&self, other: &Rhs) -> bool

Returns true if values are not approximately equal.

Loading content...

Implementations on Foreign Types

impl<T: FuzzyEq> FuzzyEq<Vec<T>> for Vec<T>[src]

impl FuzzyEq<f32> for f32[src]

impl FuzzyEq<f64> for f64[src]

Loading content...

Implementors

impl FuzzyEq<PathSegment> for PathSegment[src]

impl FuzzyEq<Angle> for Angle[src]

impl FuzzyEq<Length> for Length[src]

impl FuzzyEq<Transform> for Transform[src]

impl FuzzyEq<ViewBox> for ViewBox[src]

Loading content...