Trait vek::ops::ColorComponent

source ·
pub trait ColorComponent: Zero {
    // Required method
    fn full() -> Self;
}
Expand description

Trait for types that are suitable for representing a color component value.

Required Methods§

source

fn full() -> Self

The minimum value such that the color is at its maximum.

In pratice, it yields T::MAX for integers and 1 for real number types.

Implementations on Foreign Types§

source§

impl ColorComponent for f64

source§

fn full() -> Self

source§

impl ColorComponent for Wrapping<u16>

source§

fn full() -> Self

source§

impl ColorComponent for Wrapping<u8>

source§

fn full() -> Self

source§

impl ColorComponent for Wrapping<u64>

source§

fn full() -> Self

source§

impl ColorComponent for i32

source§

fn full() -> Self

source§

impl ColorComponent for i8

source§

fn full() -> Self

source§

impl ColorComponent for f32

source§

fn full() -> Self

source§

impl ColorComponent for u8

source§

fn full() -> Self

source§

impl ColorComponent for Wrapping<i8>

source§

fn full() -> Self

source§

impl ColorComponent for i64

source§

fn full() -> Self

source§

impl ColorComponent for i16

source§

fn full() -> Self

source§

impl ColorComponent for Wrapping<i32>

source§

fn full() -> Self

source§

impl ColorComponent for u64

source§

fn full() -> Self

source§

impl ColorComponent for Wrapping<i64>

source§

fn full() -> Self

source§

impl ColorComponent for u16

source§

fn full() -> Self

source§

impl ColorComponent for Wrapping<i16>

source§

fn full() -> Self

source§

impl ColorComponent for Wrapping<u32>

source§

fn full() -> Self

source§

impl ColorComponent for u32

source§

fn full() -> Self

Implementors§