Trait julia_set::transform::ApplyTransform

source ·
pub trait ApplyTransform<Pix: Pixel, F> {
    type CombinedTransform: PixelTransform<Pix>;

    // Required method
    fn apply(
        self,
        transform: F,
    ) -> ImageAndTransform<Pix, Self::CombinedTransform>;
}
Expand description

Trait allowing to lazily apply one or more PixelTransforms to an image.

This trait is implemented for [ImageBuffer]s and for ImageAndTransforms, allowing to chain transforms.

Required Associated Types§

source

type CombinedTransform: PixelTransform<Pix>

Combined transform after applying transform.

Required Methods§

source

fn apply(self, transform: F) -> ImageAndTransform<Pix, Self::CombinedTransform>

Appends transform to the list of transforms to be performed on the source image.

Implementations on Foreign Types§

source§

impl<Pix, F> ApplyTransform<Pix, F> for ImageBuffer<Pix, Vec<Pix::Subpixel>>
where Pix: Pixel, F: PixelTransform<Pix>,

§

type CombinedTransform = F

source§

fn apply(self, transform: F) -> ImageAndTransform<Pix, F>

Implementors§

source§

impl<Pix, F, G> ApplyTransform<Pix, G> for ImageAndTransform<Pix, F>
where Pix: Pixel, F: PixelTransform<Pix>, G: PixelTransform<F::Output>,