[][src]Enum unstructured::Number

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

Variants

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

Implementations

impl Number[src]

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

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

Returns true if the value is any unsigned integer (u8, u16, u32, u64)

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

Returns true if the value is any float (f32, f64)

Trait Implementations

impl Add<Number> for Number[src]

type Output = Number

The resulting type after applying the + operator.

impl Clone for Number[src]

impl Debug for Number[src]

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

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

type Error = DeserializerError

The error type that can be returned if some error occurs during deserialization. Read more

impl<'de, 'a> Deserializer<'de> for &'a Number[src]

type Error = DeserializerError

The error type that can be returned if some error occurs during deserialization. Read more

impl Display 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<&'_ 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 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 Hash for Number[src]

impl Ord for Number[src]

impl<T: UnstructuredDataTrait> PartialEq<Number> for Unstructured<T>[src]

impl PartialEq<Number> for Number[src]

impl<T: UnstructuredDataTrait> PartialEq<Unstructured<T>> for Number[src]

impl PartialEq<f32> for Number[src]

impl PartialEq<f64> for Number[src]

impl PartialEq<i128> for Number[src]

impl PartialEq<i16> for Number[src]

impl PartialEq<i32> for Number[src]

impl PartialEq<i64> for Number[src]

impl PartialEq<i8> for Number[src]

impl PartialEq<u128> for Number[src]

impl PartialEq<u16> for Number[src]

impl PartialEq<u32> for Number[src]

impl PartialEq<u64> for Number[src]

impl PartialEq<u8> for Number[src]

impl PartialOrd<Number> for Number[src]

impl Serialize 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<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 = 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.