Debian Codegraph @

src/formats/bgr.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 `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 Bgrrust-analyzer cargo rgb 0.8.53 formats/bgr/Bgr#<T> {
15 /// Blue Component
16 pub brust-analyzer cargo rgb 0.8.53 formats/bgr/Bgr#b.: T,
17 /// Green Component
18 pub grust-analyzer cargo rgb 0.8.53 formats/bgr/Bgr#g.: T,
19 /// Red Component
20 pub rrust-analyzer cargo rgb 0.8.53 formats/bgr/Bgr#r.: T,
21 }