Add Eq
and PartialEq
derives to Color
This commit is contained in:
parent
66e44293de
commit
4ff7d0d824
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue