Minor fixups to Pixel struct
This commit is contained in:
parent
5469530c64
commit
5952a88e8c
1 changed files with 2 additions and 2 deletions
|
@ -2,9 +2,9 @@ use crate::consts::{QOI_OP_DIFF, QOI_OP_LUMA, QOI_OP_RGB, QOI_OP_RGBA};
|
||||||
use crate::error::Result;
|
use crate::error::Result;
|
||||||
use crate::utils::Writer;
|
use crate::utils::Writer;
|
||||||
|
|
||||||
#[derive(Copy, Clone, PartialEq, Eq)]
|
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
|
||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
pub struct Pixel<const N: usize>(pub [u8; N]);
|
pub struct Pixel<const N: usize>([u8; N]);
|
||||||
|
|
||||||
impl<const N: usize> Pixel<N> {
|
impl<const N: usize> Pixel<N> {
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Reference in a new issue