[][src]Struct pix::Cu16

pub struct Cu16 {
    pub value: u16,
}

Unsigned 16-bit color channel

Fields

value: u16

Methods

impl Cu16[src]

pub fn new(value: u16) -> Self[src]

Trait Implementations

impl Channel for Cu16[src]

fn min(self, rhs: Self) -> Self[src]

Get min of two channel values

fn max(self, rhs: Self) -> Self[src]

Get max of two channel values

fn full() -> Self[src]

Get channel value with full intensity

fn lerp_alpha(self, dest: Self, alpha: Self) -> Self[src]

Linear interpolation

impl Copy for Cu16[src]

impl PartialEq<Cu16> for Cu16[src]

impl Default for Cu16[src]

impl Clone for Cu16[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<u8> for Cu16[src]

impl From<f32> for Cu16[src]

impl From<Cu16> for u8[src]

impl Debug for Cu16[src]

impl Div<Cu16> for Cu16[src]

type Output = Self

The resulting type after applying the / operator.

impl Mul<Cu16> for Cu16[src]

type Output = Self

The resulting type after applying the * operator.

Auto Trait Implementations

impl Send for Cu16

impl Sync for Cu16

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]