lento 0.1.1

Cross platform ui framework
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub struct IdGenerator {
    next_id: u32,
}

impl IdGenerator {
    pub fn new() -> Self {
        Self { next_id: 1 }
    }

    pub fn generate_id(&mut self) -> u32 {
        let id = self.next_id;
        self.next_id += 1;
        id
    }
}