craft_core 0.1.1

Core library for the Craft GUI framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(Clone, Copy)]
#[repr(usize)]
pub enum CornerSide {
    Top = 0,
    Bottom = 1,
}

impl CornerSide {
    pub(crate) fn next(self) -> Self {
        unsafe { std::mem::transmute((self as usize + 1) & 1) }
    }
}