[−][src]Enum rustc_typeck::check::op::BinOpCategory
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
impl BinOpCategory[src]
pub(in check::op) fn from(
op: BinOp
) -> BinOpCategory[src]
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.