#[repr(C)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "defmt-03", derive(defmt::Format))]
#[derive(Copy, Clone, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct GrayA<T, A = T> {
pub v: T,
pub a: A,
}
impl<T: Copy> GrayA<T> {
pub fn value(self) -> T {
self.v
}
pub fn value_mut(&mut self) -> &mut T {
&mut self.v
}
}