#[derive(Clone, Copy, Debug, PartialEq, Serialize, Deserialize)]
pub enum Side {
Inner,
Top,
Bottom,
Left,
Right,
}
impl Side {
pub fn is_inner(&self) -> bool {
self == &Side::Inner
}
pub fn is_top(&self) -> bool {
self == &Side::Top
}
pub fn is_bottom(&self) -> bool {
self == &Side::Bottom
}
pub fn is_left(&self) -> bool {
self == &Side::Left
}
pub fn is_right(&self) -> bool {
self == &Side::Right
}
}