Enum rustc_typeck::check::op::BinOpCategory [−][src]
enum BinOpCategory {
Shortcircuit,
Shift,
Math,
Bitwise,
Comparison,
}Variants
&&, || – cannot be overridden
<<, >> – when shifting a single integer, rhs can be any integer type. For simd, types must match.
+, -, etc – takes equal types, produces same type as input, applicable to ints/floats/simd
&, |, ^ – takes equal types, produces same type as input, applicable to ints/floats/simd/bool
==, !=, etc – takes equal types, produces bools, except for simd, which produce the input type
Implementations
Auto Trait Implementations
impl RefUnwindSafe for BinOpCategoryimpl Send for BinOpCategoryimpl Sync for BinOpCategoryimpl Unpin for BinOpCategoryimpl UnwindSafe for BinOpCategoryBlanket Implementations
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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