[][src]Enum newel::ScalarTy

pub enum ScalarTy {
    TBool,
    TU8,
    TU16,
    TU32,
    TU64,
    TU128,
    TI8,
    TI16,
    TI32,
    TI64,
    TI128,
    TF32,
    TF64,
}

All Operands in newel have an underlying ScalarTy which is the type of every element in a homogeneous Slice operand, or the type of the sole element of a Const operand. The ScalarTy is for any evaluation step.

Variants

TBool
TU8
TU16
TU32
TU64
TU128
TI8
TI16
TI32
TI64
TI128
TF32
TF64

Methods

impl ScalarTy[src]

pub fn join(self, other: Self) -> Self[src]

Returns the ScalarTy that's the join of self and other: should be used to decide the type to promote self and other to when used as the two types of a binary operator.

Trait Implementations

impl Clone for ScalarTy[src]

impl Copy for ScalarTy[src]

impl Debug for ScalarTy[src]

impl Eq for ScalarTy[src]

impl PartialEq<ScalarTy> for ScalarTy[src]

impl StructuralEq for ScalarTy[src]

impl StructuralPartialEq for ScalarTy[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, U> Cast<U> for T where
    U: FromCast<T>, 
[src]

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

impl<T> FromCast<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, 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.