[][src]Enum moore_vhdl::op::Operator

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

An operator.

See IEEE 1076-2008 section 9.2.

Variants

Logical(LogicalOp)

A logical operator.

A relational operator.

A matching relational operator (i.e. with ? prefix).

Shift(ShiftOp)

A shift operator.

Add

Addition or positive sign +.

Sub

Subtraction or negative sign -.

Concat

Concatenation &.

Mul

Multiplication *.

Div

Division /.

Mod

Modulus mod.

Rem

Remainder rem.

Pow

Power **.

Abs

Absolute value abs.

Not

Boolean negation `not.

Cond

Condition operator ??.

Implementations

impl Operator[src]

pub fn from_name(name: Name) -> Option<Operator>[src]

Map a name to an operator.

Returns None if no such operator exists.

Trait Implementations

impl Clone for Operator[src]

impl Copy for Operator[src]

impl Debug for Operator[src]

impl Display for Operator[src]

impl Eq for Operator[src]

impl From<BinaryOp> for Operator[src]

impl From<Operator> for ResolvableName[src]

impl From<UnaryOp> for Operator[src]

impl Hash for Operator[src]

impl PartialEq<Operator> for Operator[src]

impl StructuralEq for Operator[src]

impl StructuralPartialEq for Operator[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> Pointable for T

type Init = T

The type for initializers.

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.