[][src]Enum sj::Number

pub enum Number {
    I8(i8),
    U8(u8),
    I16(i16),
    U16(u16),
    I32(i32),
    U32(u32),
    I64(i64),
    U64(u64),
    I128(i128),
    U128(u128),
    ISize(isize),
    USize(usize),
    F32(f32),
    F64(f64),
}

Number

You rarely use this directly, but Value.

Variants

I8(i8)
U8(u8)
I16(i16)
U16(u16)
I32(i32)
U32(u32)
I64(i64)
U64(u64)
I128(i128)
U128(u128)
ISize(isize)
USize(usize)
F32(f32)
F64(f64)

Trait Implementations

impl From<i8> for Number[src]

impl From<i16> for Number[src]

impl From<i32> for Number[src]

impl From<i64> for Number[src]

impl From<i128> for Number[src]

impl From<isize> for Number[src]

impl From<u8> for Number[src]

impl From<u16> for Number[src]

impl From<u32> for Number[src]

impl From<u64> for Number[src]

impl From<u128> for Number[src]

impl From<usize> for Number[src]

impl From<f32> for Number[src]

impl From<f64> for Number[src]

impl From<Number> for Value[src]

impl Debug for Number[src]

impl Display for Number[src]

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

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Number> for i8[src]

type Error = Error

The type returned in the event of a conversion error.

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

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Number> for i16[src]

type Error = Error

The type returned in the event of a conversion error.

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

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Number> for i32[src]

type Error = Error

The type returned in the event of a conversion error.

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

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Number> for i64[src]

type Error = Error

The type returned in the event of a conversion error.

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

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Number> for i128[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Number> for isize[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Number> for isize[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Number> for u8[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Number> for u8[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Number> for u16[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Number> for u16[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Number> for u32[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Number> for u32[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Number> for u64[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Number> for u64[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Number> for u128[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Number> for u128[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Number> for usize[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Number> for usize[src]

type Error = Error

The type returned in the event of a conversion error.

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

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Number> for f32[src]

type Error = Error

The type returned in the event of a conversion error.

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

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Number> for f64[src]

type Error = Error

The type returned in the event of a conversion error.

impl Clone for Number[src]

Auto Trait Implementations

impl Unpin for Number

impl Send for Number

impl Sync for Number

impl UnwindSafe for Number

impl RefUnwindSafe for Number

Blanket Implementations

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

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

type Error = !

The type returned in the event of a conversion error.

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

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[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]