[][src]Enum moore_vhdl::op::BinaryOp

pub enum BinaryOp {
    Logical(LogicalOp),
    Rel(RelationalOp),
    Match(RelationalOp),
    Shift(ShiftOp),
    Add,
    Sub,
    Concat,
    Mul,
    Div,
    Mod,
    Rem,
    Pow,
}

A binary operator.

See IEEE 1076-2008 section 9.2.

Variants

Logical(LogicalOp)

A logical operator.

A relational operator.

A matching relational operator. These are the relational operators prefixed with a ?.

Shift(ShiftOp)

A shift operator.

Add

The + operator.

Sub

The - operator.

Concat

The & operator.

Mul

The * operator.

Div

The / operator.

Mod

The mod operator.

Rem

The rem operator.

Pow

The ** operator.

Implementations

impl BinaryOp[src]

pub fn from<C: DiagEmitter>(
    ast: Spanned<BinaryOp>,
    ctx: C
) -> Result<Spanned<BinaryOp>>
[src]

Map an AST binary operator to a HIR binary operator.

Emits an error if the operator is not a valid binary operator.

Trait Implementations

impl Clone for BinaryOp[src]

impl Copy for BinaryOp[src]

impl Debug for BinaryOp[src]

impl Display for BinaryOp[src]

impl Eq for BinaryOp[src]

impl From<BinaryOp> for Operator[src]

impl From<BinaryOp> for ResolvableName[src]

impl PartialEq<BinaryOp> for BinaryOp[src]

impl StructuralEq for BinaryOp[src]

impl StructuralPartialEq for BinaryOp[src]

Auto Trait Implementations

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<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.