pub struct Pixel {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}Expand description
SRGBA 8bits pixel.
Fields§
§r: u8Red channel
g: u8Green channel
b: u8Blue channel
a: u8Alpha channel
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pixel
impl RefUnwindSafe for Pixel
impl Send for Pixel
impl Sync for Pixel
impl Unpin 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