Skip to main content

PixelsExt

Trait PixelsExt 

Source
pub trait PixelsExt {
    // Required methods
    fn as_f32(&self) -> f32;
    fn as_f64(self) -> f64;
}
Expand description

A trait for converting Pixels to f32 and f64.

Required Methods§

Source

fn as_f32(&self) -> f32

Source

fn as_f64(self) -> f64

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PixelsExt for Pixels

Source§

fn as_f32(&self) -> f32

Source§

fn as_f64(self) -> f64

Implementors§