Skip to main content

ColorComponentForCicp

Trait ColorComponentForCicp 

Source
pub(crate) trait ColorComponentForCicp: Copy {
    // Required methods
    fn expand_to_f32(self) -> f32;
    fn clamp_from_f32(val: f32) -> Self;
}

Required Methods§

Source

fn expand_to_f32(self) -> f32

Source

fn clamp_from_f32(val: f32) -> 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.

Implementations on Foreign Types§

Source§

impl ColorComponentForCicp for f32

Source§

impl ColorComponentForCicp for u8

Source§

impl ColorComponentForCicp for u16

Implementors§