[][src]Struct sj::Number

pub struct Number { /* fields omitted */ }

Number

You rarely use this directly, but Value.

Notes

  • PartialEq and PartialOrd are not implemented. Since different number types cannot be compared directly.
  • Hash is not implemented. Because f32 and f64 don't implement it.

Trait Implementations

impl Clone for Number[src]

impl Debug for Number[src]

impl Display for Number[src]

impl From<Number> for Value[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<isize> 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<usize> 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 i16[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 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 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 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 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 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 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 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 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 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 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 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 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.

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<T> From<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> ToString for T where
    T: Display + ?Sized
[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> 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.