Enum tc_value::NumberType[][src]

pub enum NumberType {
    Bool,
    Complex(ComplexType),
    Float(FloatType),
    Int(IntType),
    UInt(UIntType),
    Number,
}

The type of a generic Number.

Variants

Bool
Complex(ComplexType)
Float(FloatType)
Int(IntType)
UInt(UIntType)
Number

Implementations

impl NumberType[src]

Trait Implementations

impl Clone for NumberType[src]

impl Copy for NumberType[src]

impl Debug for NumberType[src]

impl Default for NumberType[src]

impl<'de> Deserialize<'de> for NumberType[src]

impl Display for NumberType[src]

impl Eq for NumberType[src]

impl From<BooleanType> for NumberType[src]

impl From<ComplexType> for NumberType[src]

impl From<FloatType> for NumberType[src]

impl From<IntType> for NumberType[src]

impl From<UIntType> for NumberType[src]

impl Hash for NumberType[src]

impl NumberClass for NumberType[src]

type Instance = Number

impl Ord for NumberType[src]

impl PartialEq<NumberType> for NumberType[src]

impl PartialOrd<NumberType> for NumberType[src]

impl Serialize for NumberType[src]

impl StructuralEq for NumberType[src]

impl StructuralPartialEq for NumberType[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<F, T> CastFrom<F> for T where
    T: From<F>, 
[src]

impl<T, F> CastInto<F> for T where
    F: CastFrom<T>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<F> Match for F[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<F, T> TryCastFrom<F> for T where
    T: CastFrom<F>, 
[src]

impl<F, T> TryCastInto<T> for F where
    T: TryCastFrom<F>, 
[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.