tray_icon::menu::dpi

Trait Pixel

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

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

Required Methods§

Source

fn from_f64(f: f64) -> Self

Provided Methods§

Source

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

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

Source§

impl Pixel for f64

Source§

impl Pixel for i8

Source§

impl Pixel for i16

Source§

impl Pixel for i32

Source§

impl Pixel for u8

Source§

impl Pixel for u16

Source§

impl Pixel for u32

Implementors§