pub trait IntoPixel<T, F>: Sized {
// Required method
fn into_pixel(self) -> T;
// Provided method
fn into_pixel_fmt(self, _: F) -> T { ... }
}Required Methods§
Sourcefn into_pixel(self) -> T
fn into_pixel(self) -> T
Converts self to T in format F.
Provided Methods§
Sourcefn into_pixel_fmt(self, _: F) -> T
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.