[−][src]Struct pixel_canvas::color::Color
A single RGB-888 color.
Fields
r: u8The red component.
g: u8The green component.
b: u8The blue component.
Methods
impl Color[src]
pub const BLACK: Color[src]
The color black.
pub const WHITE: Color[src]
The color white.
pub fn rgb(r: u8, g: u8, b: u8) -> Color[src]
A convenience constructor for a color.
Trait Implementations
impl Blend<u8> for Color[src]
impl Blend<f32> for Color[src]
impl Default for Color[src]
impl Clone for Color[src]
impl Copy for Color[src]
impl Add<Color> for Color[src]
type Output = Color
The resulting type after applying the + operator.
fn add(self, rhs: Color) -> Color[src]
impl Sub<Color> for Color[src]
type Output = Color
The resulting type after applying the - operator.
fn sub(self, rhs: Color) -> Color[src]
impl Mul<Color> for Color[src]
type Output = Color
The resulting type after applying the * operator.
fn mul(self, rhs: Color) -> Color[src]
impl Mul<u8> for Color[src]
type Output = Color
The resulting type after applying the * operator.
fn mul(self, rhs: u8) -> Color[src]
impl Mul<f32> for Color[src]
Auto Trait Implementations
impl Send for Color
impl Unpin for Color
impl Sync for Color
impl UnwindSafe for Color
impl RefUnwindSafe for Color
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, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> 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<U> 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> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Content for T where
T: Copy, [src]
T: Copy,
type Owned = T
A type that holds a sized version of the content.
fn read<F, E>(size: usize, f: F) -> Result<T, E> where
F: FnOnce(&mut T) -> Result<(), E>, [src]
F: FnOnce(&mut T) -> Result<(), E>,