pub struct Pixel {
pub r: u8,
pub g: u8,
pub b: u8,
}Expand description
An 8-bit red, green, and blue pixel.
Fields§
§r: u8Red channel value in the range [0, 255].
g: u8Green channel value in the range [0, 255].
b: u8Blue channel value in the range [0, 255].
Implementations§
Trait Implementations§
impl Copy for Pixel
impl Eq for Pixel
impl StructuralPartialEq for Pixel
Auto Trait Implementations§
impl Freeze for Pixel
impl RefUnwindSafe for Pixel
impl Send for Pixel
impl Sync for Pixel
impl Unpin for Pixel
impl UnsafeUnpin for Pixel
impl UnwindSafe for Pixel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more