Struct arqoii_types::Pixel
source · pub struct Pixel {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}
Expand description
A single RGB/RGBA pixel
In case of RGB the alpha value should always be 255
For RGBA the values should be un-premultiplied alpha
Fields§
§r: u8
§g: u8
§b: u8
§a: u8
Implementations§
Trait Implementations§
source§impl PartialEq for Pixel
impl PartialEq for Pixel
impl Eq for Pixel
impl StructuralPartialEq for Pixel
Auto Trait Implementations§
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