HexColor
pub struct HexColor { pub r: u8, pub g: u8, pub b: u8, pub a: f32,}A hexadecimal color specification.
Fields
Alpha channel parameter.
This value should be between 0 (fully transparent) and 1 (fully opaque).
Trait implementations
impl Clone for HexColor
impl Debug for HexColor
impl Serialize for HexColor
serialize
View sourcewhere S: Serializer,Parameters
- self: &Self
- serializer: S
Returns
Result<S::Ok, S::Error>