Skip to content

Commit

Permalink
Merge pull request #26 from marianomarciello/direction
Browse files Browse the repository at this point in the history
Direction: add Serialize and Deserialize
  • Loading branch information
mautamu authored Mar 2, 2024
2 parents 06345b4 + 391d965 commit b5b26d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion leftwm-layouts/src/geometry/direction.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use super::Rect;

use serde::{Deserialize, Serialize};

/// Represents the four different direction where we can search for a neighbor
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Deserialize, Serialize)]
pub enum Direction {
#[default]
/// Search for neighbor starting from the top left of the current rect
Expand Down

0 comments on commit b5b26d4

Please sign in to comment.