Trait tauri_runtime::window::dpi::Pixel

source ·
pub trait Pixel: Copy + Into<f64> {
    // Required method
    fn from_f64(f: f64) -> Self;

    // Provided method
    fn cast<P: Pixel>(self) -> P { ... }
}

Required Methods§

source

fn from_f64(f: f64) -> Self

Provided Methods§

source

fn cast<P: Pixel>(self) -> P

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Pixel for f32

source§

fn from_f64(f: f64) -> Self

source§

impl Pixel for f64

source§

fn from_f64(f: f64) -> Self

source§

impl Pixel for i8

source§

fn from_f64(f: f64) -> Self

source§

impl Pixel for i16

source§

fn from_f64(f: f64) -> Self

source§

impl Pixel for i32

source§

fn from_f64(f: f64) -> Self

source§

impl Pixel for u8

source§

fn from_f64(f: f64) -> Self

source§

impl Pixel for u16

source§

fn from_f64(f: f64) -> Self

source§

impl Pixel for u32

source§

fn from_f64(f: f64) -> Self

Implementors§