Skip to main content

PixelComponent

Trait PixelComponent 

Source
pub trait PixelComponent:
    Copy
    + Num
    + NumCast
    + NumAssign
    + NumOps
    + PartialOrd<Self> {
    const COMPONENT_MIN: Self;
    const COMPONENT_MAX: Self;
}
Expand description

A trait for all the required super-traits for a pixel component type.

Required Associated Constants§

Source

const COMPONENT_MIN: Self

The minimum component value

Source

const COMPONENT_MAX: Self

The maximum component value

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl PixelComponent for f32

Source§

const COMPONENT_MIN: Self = 0.0

Source§

const COMPONENT_MAX: Self = 1.0

Source§

impl PixelComponent for f64

Source§

const COMPONENT_MIN: Self = 0.0

Source§

const COMPONENT_MAX: Self = 1.0

Source§

impl PixelComponent for i8

Source§

const COMPONENT_MIN: Self = i8::MIN

Source§

const COMPONENT_MAX: Self = i8::MAX

Source§

impl PixelComponent for i16

Source§

const COMPONENT_MIN: Self = i16::MIN

Source§

const COMPONENT_MAX: Self = i16::MAX

Source§

impl PixelComponent for i32

Source§

const COMPONENT_MIN: Self = i32::MIN

Source§

const COMPONENT_MAX: Self = i32::MAX

Source§

impl PixelComponent for i64

Source§

const COMPONENT_MIN: Self = i64::MIN

Source§

const COMPONENT_MAX: Self = i64::MAX

Source§

impl PixelComponent for i128

Source§

const COMPONENT_MIN: Self = i128::MIN

Source§

const COMPONENT_MAX: Self = i128::MAX

Source§

impl PixelComponent for isize

Source§

const COMPONENT_MIN: Self = isize::MIN

Source§

const COMPONENT_MAX: Self = isize::MAX

Source§

impl PixelComponent for u8

Source§

const COMPONENT_MIN: Self = u8::MIN

Source§

const COMPONENT_MAX: Self = u8::MAX

Source§

impl PixelComponent for u16

Source§

const COMPONENT_MIN: Self = u16::MIN

Source§

const COMPONENT_MAX: Self = u16::MAX

Source§

impl PixelComponent for u32

Source§

const COMPONENT_MIN: Self = u32::MIN

Source§

const COMPONENT_MAX: Self = u32::MAX

Source§

impl PixelComponent for u64

Source§

const COMPONENT_MIN: Self = u64::MIN

Source§

const COMPONENT_MAX: Self = u64::MAX

Source§

impl PixelComponent for u128

Source§

const COMPONENT_MIN: Self = u128::MIN

Source§

const COMPONENT_MAX: Self = u128::MAX

Source§

impl PixelComponent for usize

Source§

const COMPONENT_MIN: Self = usize::MIN

Source§

const COMPONENT_MAX: Self = usize::MAX

Implementors§