Add Eq and PartialEq derives to Color

This commit is contained in:
grovesNL 2022-10-24 09:25:20 -02:30
parent 66e44293de
commit 4ff7d0d824

View file

@ -13,7 +13,7 @@ pub use text_render::TextRenderer;
/// The color to use when rendering text. /// The color to use when rendering text.
#[repr(C)] #[repr(C)]
#[derive(Clone, Copy, Debug)] #[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct Color { pub struct Color {
/// The red component of the color. /// The red component of the color.
pub r: u8, pub r: u8,