Derive default
This commit is contained in:
@@ -549,21 +549,16 @@ impl<'de> Deserialize<'de> for Hsla {
|
||||
}
|
||||
|
||||
/// The orientation of a background.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
#[derive(Default, Debug, Clone, Copy, PartialEq, Eq)]
|
||||
#[repr(C)]
|
||||
pub enum BackgroundOrientation {
|
||||
/// The background is oriented horizontally.
|
||||
#[default]
|
||||
Horizontal = 0,
|
||||
/// The background is oriented vertically.
|
||||
Vertical = 1,
|
||||
}
|
||||
|
||||
impl Default for BackgroundOrientation {
|
||||
fn default() -> Self {
|
||||
BackgroundOrientation::Horizontal
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for BackgroundOrientation {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
|
||||
Reference in New Issue
Block a user