DitherFloat

Trait DitherFloat 

Source
pub trait DitherFloat:
    Copy
    + PartialEq
    + PartialOrd
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Neg<Output = Self>
    + Number
    + CastableFrom<f64> {
    // Required method
    fn round(self) -> Self;
}
Expand description

Minimal trait requirements for dithering.

Required Methods§

Source

fn round(self) -> Self

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

Source§

fn round(self) -> Self

Source§

impl DitherFloat for f64

Source§

fn round(self) -> Self

Implementors§