[−][src]Struct pixel_canvas::color::Color
A single RGB-888 color.
Fields
r: u8The red component.
g: u8The green component.
b: u8The blue component.
Implementations
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 Add<Color> for Color[src]
type Output = Color
The resulting type after applying the + operator.
pub fn add(self, rhs: Color) -> Color[src]
impl Blend<f32> for Color[src]
impl Blend<u8> for Color[src]
impl Clone for Color[src]
impl Copy for Color[src]
impl Default for Color[src]
impl Mul<Color> for Color[src]
type Output = Color
The resulting type after applying the * operator.
pub fn mul(self, rhs: Color) -> Color[src]
impl Mul<f32> for Color[src]
type Output = Color
The resulting type after applying the * operator.
pub fn mul(self, rhs: f32) -> Color[src]
impl Mul<u8> for Color[src]
type Output = Color
The resulting type after applying the * operator.
pub fn mul(self, rhs: u8) -> Color[src]
impl Sub<Color> for Color[src]
Auto Trait Implementations
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Content for T where
T: Copy, [src]
T: Copy,
type Owned = T
A type that holds a sized version of the content.
pub 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>,
pub fn get_elements_size() -> usize[src]
pub fn to_void_ptr(&self) -> *const ()[src]
pub fn ref_from_ptr(ptr: *mut (), size: usize) -> Option<*mut T>[src]
pub fn is_size_suitable(size: usize) -> bool[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut 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.
pub 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>,