luaur-analysis 0.1.3

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

#[allow(non_snake_case)]
pub fn operator_bitor(lhs: Polarity, rhs: Polarity) -> Polarity {
    unsafe { core::mem::transmute(lhs as u8 | rhs as u8) }
}

impl core::ops::BitOr for Polarity {
    type Output = Self;

    fn bitor(self, rhs: Self) -> Self::Output {
        operator_bitor(self, rhs)
    }
}

// Pinned overload name advertised by the dependency cards.
#[allow(unused_imports, non_snake_case)]
pub use operator_bitor as operator_bitor_polarity_polarity;