#[repr(u8)]pub enum BinOpcode {
Show 13 variants
Add = 0,
Sub = 1,
Mul = 2,
UDiv = 3,
SDiv = 4,
URem = 5,
SRem = 6,
Shl = 7,
LShr = 8,
AShr = 9,
And = 10,
Or = 11,
Xor = 12,
}Expand description
These are values used in the bitcode files to encode which
binop a CST_CODE_CE_BINOP refers to.
Variants§
Add = 0
Sub = 1
Mul = 2
UDiv = 3
SDiv = 4
overloaded for FP
URem = 5
SRem = 6
overloaded for FP
Shl = 7
LShr = 8
AShr = 9
And = 10
Or = 11
Xor = 12
Implementations§
Source§impl BinOpcode
impl BinOpcode
pub fn with_flags(self, flags: u8) -> BinOpcodeFlags
Trait Implementations§
Source§impl TryFromPrimitive for BinOpcode
impl TryFromPrimitive for BinOpcode
impl Copy for BinOpcode
impl Eq for BinOpcode
impl StructuralPartialEq for BinOpcode
Auto Trait Implementations§
impl Freeze for BinOpcode
impl RefUnwindSafe for BinOpcode
impl Send for BinOpcode
impl Sync for BinOpcode
impl Unpin for BinOpcode
impl UnsafeUnpin for BinOpcode
impl UnwindSafe for BinOpcode
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