Enum erg_compiler::ty::typaram::OpKind
source · #[repr(u8)]pub enum OpKind {
Show 25 variants
Add = 0,
Sub = 1,
Mul = 2,
Div = 3,
FloorDiv = 4,
Pow = 5,
Mod = 6,
Pos = 7,
Neg = 8,
Invert = 9,
Gt = 10,
Lt = 11,
Ge = 12,
Le = 13,
Eq = 14,
Ne = 15,
As = 16,
And = 17,
Or = 18,
Not = 19,
BitAnd = 20,
BitOr = 21,
BitXor = 22,
Shl = 23,
Shr = 24,
}
Variants§
Add = 0
Sub = 1
Mul = 2
Div = 3
FloorDiv = 4
Pow = 5
Mod = 6
Pos = 7
Neg = 8
Invert = 9
Gt = 10
Lt = 11
Ge = 12
Le = 13
Eq = 14
Ne = 15
As = 16
And = 17
Or = 18
Not = 19
BitAnd = 20
BitOr = 21
BitXor = 22
Shl = 23
Shr = 24
Implementations§
Trait Implementations§
source§impl PartialEq for OpKind
impl PartialEq for OpKind
impl Copy for OpKind
impl Eq for OpKind
impl StructuralEq for OpKind
impl StructuralPartialEq for OpKind
Auto Trait Implementations§
impl RefUnwindSafe for OpKind
impl Send for OpKind
impl Sync for OpKind
impl Unpin for OpKind
impl UnwindSafe for OpKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more