Struct sj::Number

source ·
pub struct Number { /* private fields */ }
Expand description

§Number

You rarely use this directly, but Json.

§Notes

  • Internally, this struct uses an enum to store values of different types (such as i64, f64…). Since different number types cannot be compared directly, PartialEq and PartialOrd are not implemented.
  • Hash is not implemented. Because f32 and f64 don’t implement it.

Trait Implementations§

source§

impl Clone for Number

source§

fn clone(&self) -> Number

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Number

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Number

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&NonZero<i128>> for Number

source§

fn from(n: &NonZeroI128) -> Self

Converts to this type from the input type.
source§

impl From<&NonZero<i16>> for Number

source§

fn from(n: &NonZeroI16) -> Self

Converts to this type from the input type.
source§

impl From<&NonZero<i32>> for Number

source§

fn from(n: &NonZeroI32) -> Self

Converts to this type from the input type.
source§

impl From<&NonZero<i64>> for Number

source§

fn from(n: &NonZeroI64) -> Self

Converts to this type from the input type.
source§

impl From<&NonZero<i8>> for Number

source§

fn from(n: &NonZeroI8) -> Self

Converts to this type from the input type.
source§

impl From<&NonZero<isize>> for Number

source§

fn from(n: &NonZeroIsize) -> Self

Converts to this type from the input type.
source§

impl From<&NonZero<u128>> for Number

source§

fn from(n: &NonZeroU128) -> Self

Converts to this type from the input type.
source§

impl From<&NonZero<u16>> for Number

source§

fn from(n: &NonZeroU16) -> Self

Converts to this type from the input type.
source§

impl From<&NonZero<u32>> for Number

source§

fn from(n: &NonZeroU32) -> Self

Converts to this type from the input type.
source§

impl From<&NonZero<u64>> for Number

source§

fn from(n: &NonZeroU64) -> Self

Converts to this type from the input type.
source§

impl From<&NonZero<u8>> for Number

source§

fn from(n: &NonZeroU8) -> Self

Converts to this type from the input type.
source§

impl From<&NonZero<usize>> for Number

source§

fn from(n: &NonZeroUsize) -> Self

Converts to this type from the input type.
source§

impl From<&Number> for Json

source§

fn from(n: &Number) -> Self

Converts to this type from the input type.
source§

impl From<&f32> for Number

source§

fn from(p: &f32) -> Self

Converts to this type from the input type.
source§

impl From<&f64> for Number

source§

fn from(p: &f64) -> Self

Converts to this type from the input type.
source§

impl From<&i128> for Number

source§

fn from(p: &i128) -> Self

Converts to this type from the input type.
source§

impl From<&i16> for Number

source§

fn from(p: &i16) -> Self

Converts to this type from the input type.
source§

impl From<&i32> for Number

source§

fn from(p: &i32) -> Self

Converts to this type from the input type.
source§

impl From<&i64> for Number

source§

fn from(p: &i64) -> Self

Converts to this type from the input type.
source§

impl From<&i8> for Number

source§

fn from(p: &i8) -> Self

Converts to this type from the input type.
source§

impl From<&isize> for Number

source§

fn from(n: &isize) -> Self

Converts to this type from the input type.
source§

impl From<&u128> for Number

source§

fn from(p: &u128) -> Self

Converts to this type from the input type.
source§

impl From<&u16> for Number

source§

fn from(p: &u16) -> Self

Converts to this type from the input type.
source§

impl From<&u32> for Number

source§

fn from(p: &u32) -> Self

Converts to this type from the input type.
source§

impl From<&u64> for Number

source§

fn from(p: &u64) -> Self

Converts to this type from the input type.
source§

impl From<&u8> for Number

source§

fn from(p: &u8) -> Self

Converts to this type from the input type.
source§

impl From<&usize> for Number

source§

fn from(n: &usize) -> Self

Converts to this type from the input type.
source§

impl From<NonZero<i128>> for Number

source§

fn from(n: NonZeroI128) -> Self

Converts to this type from the input type.
source§

impl From<NonZero<i16>> for Number

source§

fn from(n: NonZeroI16) -> Self

Converts to this type from the input type.
source§

impl From<NonZero<i32>> for Number

source§

fn from(n: NonZeroI32) -> Self

Converts to this type from the input type.
source§

impl From<NonZero<i64>> for Number

source§

fn from(n: NonZeroI64) -> Self

Converts to this type from the input type.
source§

impl From<NonZero<i8>> for Number

source§

fn from(n: NonZeroI8) -> Self

Converts to this type from the input type.
source§

impl From<NonZero<isize>> for Number

source§

fn from(n: NonZeroIsize) -> Self

Converts to this type from the input type.
source§

impl From<NonZero<u128>> for Number

source§

fn from(n: NonZeroU128) -> Self

Converts to this type from the input type.
source§

impl From<NonZero<u16>> for Number

source§

fn from(n: NonZeroU16) -> Self

Converts to this type from the input type.
source§

impl From<NonZero<u32>> for Number

source§

fn from(n: NonZeroU32) -> Self

Converts to this type from the input type.
source§

impl From<NonZero<u64>> for Number

source§

fn from(n: NonZeroU64) -> Self

Converts to this type from the input type.
source§

impl From<NonZero<u8>> for Number

source§

fn from(n: NonZeroU8) -> Self

Converts to this type from the input type.
source§

impl From<NonZero<usize>> for Number

source§

fn from(n: NonZeroUsize) -> Self

Converts to this type from the input type.
source§

impl From<Number> for Json

source§

fn from(n: Number) -> Self

Converts to this type from the input type.
source§

impl From<f32> for Number

source§

fn from(p: f32) -> Self

Converts to this type from the input type.
source§

impl From<f64> for Number

source§

fn from(p: f64) -> Self

Converts to this type from the input type.
source§

impl From<i128> for Number

source§

fn from(p: i128) -> Self

Converts to this type from the input type.
source§

impl From<i16> for Number

source§

fn from(p: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Number

source§

fn from(p: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for Number

source§

fn from(p: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for Number

source§

fn from(p: i8) -> Self

Converts to this type from the input type.
source§

impl From<isize> for Number

source§

fn from(n: isize) -> Self

Converts to this type from the input type.
source§

impl From<u128> for Number

source§

fn from(p: u128) -> Self

Converts to this type from the input type.
source§

impl From<u16> for Number

source§

fn from(p: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Number

source§

fn from(p: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for Number

source§

fn from(p: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Number

source§

fn from(p: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for Number

source§

fn from(n: usize) -> Self

Converts to this type from the input type.
source§

impl PartialEq<NonZero<i128>> for Number

source§

fn eq(&self, other: &NonZeroI128) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<NonZero<i16>> for Number

source§

fn eq(&self, other: &NonZeroI16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<NonZero<i32>> for Number

source§

fn eq(&self, other: &NonZeroI32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<NonZero<i64>> for Number

source§

fn eq(&self, other: &NonZeroI64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<NonZero<i8>> for Number

source§

fn eq(&self, other: &NonZeroI8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<NonZero<isize>> for Number

source§

fn eq(&self, other: &NonZeroIsize) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<NonZero<u128>> for Number

source§

fn eq(&self, other: &NonZeroU128) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<NonZero<u16>> for Number

source§

fn eq(&self, other: &NonZeroU16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<NonZero<u32>> for Number

source§

fn eq(&self, other: &NonZeroU32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<NonZero<u64>> for Number

source§

fn eq(&self, other: &NonZeroU64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<NonZero<u8>> for Number

source§

fn eq(&self, other: &NonZeroU8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<NonZero<usize>> for Number

source§

fn eq(&self, other: &NonZeroUsize) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for NonZeroI128

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for NonZeroI16

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for NonZeroI32

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for NonZeroI64

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for NonZeroI8

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for NonZeroIsize

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for NonZeroU128

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for NonZeroU16

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for NonZeroU32

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for NonZeroU64

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for NonZeroU8

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for NonZeroUsize

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for f32

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for f64

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for i128

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for i16

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for i32

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for i64

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for i8

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for isize

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for u128

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for u16

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for u32

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for u64

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for u8

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Number> for usize

source§

fn eq(&self, other: &Number) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<f32> for Number

source§

fn eq(&self, other: &f32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<f64> for Number

source§

fn eq(&self, other: &f64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i128> for Number

source§

fn eq(&self, other: &i128) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i16> for Number

source§

fn eq(&self, other: &i16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i32> for Number

source§

fn eq(&self, other: &i32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i64> for Number

source§

fn eq(&self, other: &i64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i8> for Number

source§

fn eq(&self, other: &i8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<isize> for Number

source§

fn eq(&self, other: &isize) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u128> for Number

source§

fn eq(&self, other: &u128) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u16> for Number

source§

fn eq(&self, other: &u16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u32> for Number

source§

fn eq(&self, other: &u32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u64> for Number

source§

fn eq(&self, other: &u64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u8> for Number

source§

fn eq(&self, other: &u8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<usize> for Number

source§

fn eq(&self, other: &usize) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<&Number> for NonZeroI128

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for NonZeroI16

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for NonZeroI32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for NonZeroI64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for NonZeroI8

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for NonZeroIsize

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for NonZeroU128

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for NonZeroU16

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for NonZeroU32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for NonZeroU64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for NonZeroU8

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for NonZeroUsize

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for f32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for f64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for i128

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for i16

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for i32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for i64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for i8

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for isize

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for u128

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for u16

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for u32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for u64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for u8

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&Number> for usize

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: &Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for NonZeroI128

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for NonZeroI16

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for NonZeroI32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for NonZeroI64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for NonZeroI8

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for NonZeroIsize

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for NonZeroU128

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for NonZeroU16

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for NonZeroU32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for NonZeroU64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for NonZeroU8

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for NonZeroUsize

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for f32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for f64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for i128

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for i16

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for i32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for i64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for i8

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for isize

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for u128

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for u16

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for u32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for u64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for u8

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<Number> for usize

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(n: Number) -> Result<Self>

Performs the conversion.
source§

impl Copy for Number

Auto Trait Implementations§

§

impl Freeze for Number

§

impl RefUnwindSafe for Number

§

impl Send for Number

§

impl Sync for Number

§

impl Unpin for Number

§

impl UnwindSafe for Number

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.