Debian Codegraph @

src/formats/grb.rs

raw symbols SCIP
1 #[repr(C)]
2 #[cfg_attr(feature = "serde", derive(serderust-analyzer cargo serde 1.0.225 crate/::Serializerust-analyzer cargo serde_derive 1.0.225 Serialize:, serderust-analyzer cargo serde 1.0.225 crate/::Deserializerust-analyzer cargo serde_derive 1.0.225 Deserialize:))]
3 #[cfg_attr(feature = "defmt-03", derive(defmtrust-analyzer cargo defmt 0.3.100 crate/::Formatrust-analyzer cargo defmt-macros 1.0.1 Format:))]
4 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord:, PartialOrdrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialOrd:, Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/macros/Hash:)]
5 /// A `Green + Red + Blue` pixel.
6 ///
7 /// # Examples
8 ///
9 /// ```
10 /// use rgb::Grb;
11 ///
12 /// let pixel: Grb<u8> = Grb { g: 0, r: 0, b: 0 };
13 /// ```
14 pub struct Grbrust-analyzer cargo rgb 0.8.53 formats/grb/Grb#<T> {
15 /// Green Component
16 pub grust-analyzer cargo rgb 0.8.53 formats/grb/Grb#g.: T,
17 /// Red Component
18 pub rrust-analyzer cargo rgb 0.8.53 formats/grb/Grb#r.: T,
19 /// Blue Component
20 pub brust-analyzer cargo rgb 0.8.53 formats/grb/Grb#b.: T,
21 }