mix 0.2.1

mix - a rust ui library cooked up in half a day! (expect extra salt)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub struct Area(pub usize);

impl Area {
    pub fn empty() -> Self {
        Self(0)
    }

    pub fn is_empty(&self) -> bool {
        self.0 == 0
    }
}