hex_patch/app/plugins/ui_location/
rect_borders.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(Clone, Copy, Debug)]
pub struct RectBorders {
    pub top: bool,
    pub bottom: bool,
    pub left: bool,
    pub right: bool,
}

impl RectBorders {
    pub fn any(&self) -> bool {
        self.top || self.bottom || self.left || self.right
    }
}