Trait veloren_voxygen::scene::math::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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ColorComponent for f32

source§

impl ColorComponent for f64

source§

impl ColorComponent for i8

source§

impl ColorComponent for i16

source§

impl ColorComponent for i32

source§

impl ColorComponent for i64

source§

impl ColorComponent for u8

source§

impl ColorComponent for u16

source§

impl ColorComponent for u32

source§

impl ColorComponent for u64

source§

impl ColorComponent for Wrapping<i8>

source§

impl ColorComponent for Wrapping<i16>

source§

impl ColorComponent for Wrapping<i32>

source§

impl ColorComponent for Wrapping<i64>

source§

impl ColorComponent for Wrapping<u8>

source§

impl ColorComponent for Wrapping<u16>

source§

impl ColorComponent for Wrapping<u32>

source§

impl ColorComponent for Wrapping<u64>

Implementors§