1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#[repr(u32)]
#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq)]
pub enum Relative {
    Top = 0,
    Bottom = 1,
    Right = 2,
    Left = 3,
}

impl Default for Relative {
    fn default() -> Self {
        Relative::Right
    }
}