pub trait ArbitraryPixel {
    // Required method
    fn arbitrary(g: &mut Gen) -> Self;
}
Expand description

Workaround for not being able to define Arbitrary instances for pixel types defines in other modules.

Required Methods§

source

fn arbitrary(g: &mut Gen) -> Self

Generate an arbitrary instance of this pixel type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: Send + Primitive + Arbitrary> ArbitraryPixel for Luma<T>

source§

fn arbitrary(g: &mut Gen) -> Self

source§

impl<T: Send + Primitive + Arbitrary> ArbitraryPixel for Rgb<T>

source§

fn arbitrary(g: &mut Gen) -> Self

Implementors§