Enum tc_value::Number[][src]

pub enum Number {
    Bool(Boolean),
    Complex(Complex),
    Float(Float),
    Int(Int),
    UInt(UInt),
}

A generic number.

Variants

Bool(Boolean)
Complex(Complex)
Float(Float)
Int(Int)
UInt(UInt)

Implementations

impl Number[src]

pub fn is_real(&self) -> bool[src]

Trait Implementations

impl Add<Number> for Number[src]

type Output = Number

The resulting type after applying the + operator.

impl AddAssign<Number> for Number[src]

impl CastFrom<Number> for Complex[src]

impl CastFrom<Number> for UInt[src]

impl CastFrom<Number> for Int[src]

impl CastFrom<Number> for Boolean[src]

impl CastFrom<Number> for Float[src]

impl Clone for Number[src]

impl Copy for Number[src]

impl Debug for Number[src]

impl Default for Number[src]

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

impl Display for Number[src]

impl Div<Number> for Number[src]

type Output = Number

The resulting type after applying the / operator.

impl DivAssign<Number> for Number[src]

impl Eq for Number[src]

impl From<Boolean> for Number[src]

impl From<Complex<f32>> for Number[src]

impl From<Complex<f64>> for Number[src]

impl From<Complex> for Number[src]

impl From<Float> for Number[src]

impl From<Int> for Number[src]

impl From<Number> for Value[src]

impl From<UInt> for Number[src]

impl From<bool> for Number[src]

impl From<f32> for Number[src]

impl From<f64> for Number[src]

impl From<i16> for Number[src]

impl From<i32> for Number[src]

impl From<i64> for Number[src]

impl From<u16> for Number[src]

impl From<u32> for Number[src]

impl From<u64> for Number[src]

impl From<u8> for Number[src]

impl FromStream for Number[src]

type Context = ()

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more

impl<'en> IntoStream<'en> for Number[src]

impl Mul<Number> for Number[src]

type Output = Number

The resulting type after applying the * operator.

impl MulAssign<Number> for Number[src]

impl NumberInstance for Number[src]

type Abs = Number

type Exp = Number

type Class = NumberType

impl PartialEq<Number> for Number[src]

impl PartialOrd<Number> for Number[src]

impl Product<Number> for Number[src]

impl Serialize for Number[src]

impl StructuralEq for Number[src]

impl Sub<Number> for Number[src]

type Output = Number

The resulting type after applying the - operator.

impl SubAssign<Number> for Number[src]

impl Sum<Number> for Number[src]

impl<'en> ToStream<'en> for Number[src]

impl TryCastFrom<Value> for Number[src]

Auto Trait Implementations

impl RefUnwindSafe for Number

impl Send for Number

impl Sync for Number

impl Unpin for Number

impl UnwindSafe for Number

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.