Debian Codegraph @

src/formats/rgba.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 `Red + Green + Blue + Alpha` pixel.
6 ///
7 /// # Examples
8 ///
9 /// ```
10 /// use rgb::Rgba;
11 ///
12 /// let pixel: Rgba<u8> = Rgba { r: 0, g: 0, b: 0, a: 255 };
13 /// ```
14 pub struct Rgbarust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#<T, A = T> {
15 /// Red Component
16 pub rrust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#r.: T,
17 /// Green Component
18 pub grust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#g.: T,
19 /// Blue Component
20 pub brust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#b.: T,
21 /// Alpha Component
22 pub arust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#a.: A,
23 }