[−][src]Enum rustc_typeck::check::op::BinOpCategory

pub(in check::op) 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

impl BinOpCategory[src]

pub(in check::op) 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> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]