Enum rustc_hir_typeck::op::BinOpCategory
source · enum BinOpCategory {
Shortcircuit,
Shift,
Math,
Bitwise,
Comparison,
}Variants§
Shortcircuit
&&, || – cannot be overridden
Shift
<<, >> – when shifting a single integer, rhs can be any integer type. For simd, types must match.
Math
+, -, etc – takes equal types, produces same type as input, applicable to ints/floats/simd
Bitwise
&, |, ^ – takes equal types, produces same type as input, applicable to ints/floats/simd/bool
Comparison
==, !=, etc – takes equal types, produces bools, except for simd, which produce the input type
Implementations§
source§impl BinOpCategory
impl BinOpCategory
fn from(op: BinOp) -> BinOpCategory
Auto Trait Implementations§
impl RefUnwindSafe for BinOpCategory
impl Send for BinOpCategory
impl Sync for BinOpCategory
impl Unpin for BinOpCategory
impl UnwindSafe for BinOpCategory
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Shortcircuit: 0 bytesShift: 0 bytesMath: 0 bytesBitwise: 0 bytesComparison: 0 bytes