Debian Codegraph @

.cargo/vendor/rgb/src/formats/bgr.rs

raw
1 #[repr(C)]
2 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
3 #[cfg_attr(feature = "defmt-03", derive(defmt::Format))]
4 #[derive(Copy, Clone, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash)]
5 /// A `Blue + Green + Red` pixel.
6 ///
7 /// # Examples
8 ///
9 /// ```
10 /// use rgb::Bgr;
11 ///
12 /// let pixel: Bgr<u8> = Bgr { b: 0, g: 0, r: 0 };
13 /// ```
14 pub struct Bgr<T> {
15 /// Blue Component
16 pub b: T,
17 /// Green Component
18 pub g: T,
19 /// Red Component
20 pub r: T,
21 }