Skip to main content

luaur_code_gen/methods/
ir_op_operator_ne.rs

1use crate::records::ir_op::IrOp;
2
3impl IrOp {
4    #[inline]
5    pub const fn ir_op_operator_ne(&self, rhs: IrOp) -> bool {
6        self.kind_and_index != rhs.kind_and_index
7    }
8}
9
10impl PartialEq<IrOp> for &IrOp {
11    #[inline]
12    fn eq(&self, other: &IrOp) -> bool {
13        self.kind_and_index == other.kind_and_index
14    }
15}