Skip to main content

luaur_code_gen/records/
block_ordering.rs

1#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
2pub struct BlockOrdering {
3    pub depth: u32,
4    pub preOrder: u32,
5    pub postOrder: u32,
6    pub visited: bool,
7}
8
9impl Default for BlockOrdering {
10    fn default() -> Self {
11        Self {
12            depth: 0,
13            preOrder: !0u32,
14            postOrder: !0u32,
15            visited: false,
16        }
17    }
18}
19
20#[allow(non_upper_case_globals)]
21impl BlockOrdering {
22    pub const preOrder: u32 = !0u32;
23    pub const postOrder: u32 = !0u32;
24}