Enum rustc_typeck::check::op::BinOpCategory [−][src]
enum BinOpCategory {
Shortcircuit,
Shift,
Math,
Bitwise,
Comparison,
}Variants
Expand description
&&, || – cannot be overridden
Expand description
<<, >> – when shifting a single integer, rhs can be any integer type. For simd, types must match.
Expand description
+, -, etc – takes equal types, produces same type as input, applicable to ints/floats/simd
Expand description
&, |, ^ – takes equal types, produces same type as input, applicable to ints/floats/simd/bool
Expand description
==, !=, etc – takes equal types, produces bools, except for simd, which produce the input type
Implementations
impl BinOpCategory[src]
impl BinOpCategory[src]fn from(op: BinOp) -> BinOpCategory[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,