Skip to main content

HelpDispatchTransform

Trait HelpDispatchTransform 

Source
pub(crate) trait HelpDispatchTransform: Sized + 'static {
    // Required method
    fn transform_on<O: SealedPixelWithColorType<TransformableSubpixel = Self>>(
        transform: &CicpTransform,
        into: LayoutWithColor,
    ) -> &(dyn Fn(&[Self], &mut [Self]) + Send + Sync);
}

Required Methods§

Source

fn transform_on<O: SealedPixelWithColorType<TransformableSubpixel = Self>>( transform: &CicpTransform, into: LayoutWithColor, ) -> &(dyn Fn(&[Self], &mut [Self]) + Send + Sync)

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

Source§

fn transform_on<O: SealedPixelWithColorType<TransformableSubpixel = Self>>( transform: &CicpTransform, into: LayoutWithColor, ) -> &(dyn Fn(&[Self], &mut [Self]) + Send + Sync)

Source§

impl HelpDispatchTransform for u8

Source§

fn transform_on<O: SealedPixelWithColorType<TransformableSubpixel = Self>>( transform: &CicpTransform, into: LayoutWithColor, ) -> &(dyn Fn(&[Self], &mut [Self]) + Send + Sync)

Source§

impl HelpDispatchTransform for u16

Source§

fn transform_on<O: SealedPixelWithColorType<TransformableSubpixel = Self>>( transform: &CicpTransform, into: LayoutWithColor, ) -> &(dyn Fn(&[Self], &mut [Self]) + Send + Sync)

Implementors§