luaur-analysis 0.1.1

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::enums::polarity::Polarity;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct CounterState {
    pub count: usize,
    pub polarity: Polarity,
}

impl Default for CounterState {
    fn default() -> Self {
        Self {
            count: 0,
            polarity: Polarity::None,
        }
    }
}