IntoPixel

Trait IntoPixel 

Source
pub trait IntoPixel<T, F>: Sized {
    // Required method
    fn into_pixel(self) -> T;

    // Provided method
    fn into_pixel_fmt(self, _: F) -> T { ... }
}

Required Methods§

Source

fn into_pixel(self) -> T

Converts self to T in format F.

Provided Methods§

Source

fn into_pixel_fmt(self, _: F) -> T

Converts self to T, taking an F to help type inference.

This can be used to avoid the awkward fully-qualified syntax IntoPixel::<_, F>::into_pixel(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.

Implementors§