Skip to main content

luaur_code_gen/records/
label.rs

1#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
2#[repr(C)]
3pub struct Label {
4    pub id: u32,
5    pub location: u32,
6}
7
8impl Default for Label {
9    fn default() -> Self {
10        Self {
11            id: 0,
12            location: !0u32,
13        }
14    }
15}
16
17#[allow(non_upper_case_globals)]
18impl Label {
19    pub const id: u32 = 0;
20    pub const location: u32 = !0u32;
21}