[−][src]Struct pix::Cu16
Unsigned 16-bit color channel
Fields
value: u16
Methods
impl Cu16
[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(&self) -> 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.
fn div(self, rhs: Self) -> Self
[src]
impl Mul<Cu16> for Cu16
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,