Trait usvg::FuzzyEq[][src]

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

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

Required methods

pub fn fuzzy_eq(&self, other: &Rhs) -> bool[src]

Returns true if values are approximately equal.

Loading content...

Provided methods

pub fn fuzzy_ne(&self, other: &Rhs) -> bool[src]

Returns true if values are not approximately equal.

Loading content...

Implementations on Foreign Types

impl FuzzyEq<Angle> for Angle[src]

impl FuzzyEq<f32> for f32[src]

impl FuzzyEq<Length> for Length[src]

impl FuzzyEq<ViewBox> for ViewBox[src]

impl<T> FuzzyEq<Vec<T, Global>> for Vec<T, Global> where
    T: FuzzyEq<T>, 
[src]

impl FuzzyEq<PathSegment> for PathSegment[src]

impl FuzzyEq<f64> for f64[src]

Loading content...

Implementors

impl FuzzyEq<Rect> for Rect[src]

impl FuzzyEq<Size> for Size[src]

impl FuzzyEq<Transform> for Transform[src]

Loading content...