Add PartialEq derives for widget styles
This commit is contained in:
parent
c217500a5a
commit
f912d26d64
13 changed files with 19 additions and 19 deletions
|
|
@ -187,7 +187,7 @@ where
|
|||
}
|
||||
|
||||
/// The appearance of a rule.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
pub struct Style {
|
||||
/// The color of the rule.
|
||||
pub color: Color,
|
||||
|
|
@ -200,7 +200,7 @@ pub struct Style {
|
|||
}
|
||||
|
||||
/// The fill mode of a rule.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
pub enum FillMode {
|
||||
/// Fill the whole length of the container.
|
||||
Full,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue