[][src]Enum nu_protocol::hir::Number

pub enum Number {
    Int(BigInt),
    Decimal(BigDecimal),
}

Variants

Int(BigInt)
Decimal(BigDecimal)

Trait Implementations

impl Clone for Number[src]

impl Debug for Number[src]

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

impl Eq for Number[src]

impl From<&'_ f32> for Number[src]

impl From<&'_ f64> for Number[src]

impl From<&'_ i128> for Number[src]

impl From<&'_ i16> for Number[src]

impl From<&'_ i32> for Number[src]

impl From<&'_ i64> for Number[src]

impl From<&'_ i8> for Number[src]

impl From<&'_ u128> 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 From<f32> for Number[src]

impl From<f64> for Number[src]

impl From<i128> for Number[src]

impl From<i16> for Number[src]

impl From<i32> for Number[src]

impl From<i64> for Number[src]

impl From<i8> for Number[src]

impl From<u128> 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 Hash for Number[src]

impl Mul<Number> for Number[src]

type Output = Number

The resulting type after applying the * operator.

impl Mul<u32> for Number[src]

type Output = Number

The resulting type after applying the * operator.

impl Ord for Number[src]

impl PartialEq<Number> for Number[src]

impl PartialOrd<Number> for Number[src]

impl PrettyDebug for Number[src]

impl Serialize for Number[src]

impl StructuralEq for Number[src]

impl StructuralPartialEq for Number[src]

impl ToBigInt for Number[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> PrettyDebugWithSource for T where
    T: PrettyDebug
[src]

impl<T> SpannedItem for T[src]

impl<T> TaggedItem for 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.