palette::angle

Trait AngleEq

Source
pub trait AngleEq: HasBoolMask {
    // Required method
    fn angle_eq(&self, other: &Self) -> Self::Mask;
}
Expand description

Angular equality, where 0 degrees and 360 degrees are equal.

Required Methods§

Source

fn angle_eq(&self, other: &Self) -> Self::Mask

Check if self and other represent the same angle on a circle.

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

Source§

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

Source§

impl AngleEq for f64

Source§

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

Source§

impl AngleEq for u8

Source§

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

Implementors§