Struct decorum::NotNan [] [src]

pub struct NotNan<T>(_)
where
    T: Float
;

Methods

impl<T> NotNan<T> where
    T: Float
[src]

[src]

[src]

[src]

Trait Implementations

impl<'a, T> Deserialize<'a> for NotNan<T> where
    T: Deserialize<'a> + Float
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

impl<T> Serialize for NotNan<T> where
    T: Float + Serialize
[src]

[src]

Serialize this value into the given Serde serializer. Read more

impl<T: Clone> Clone for NotNan<T> where
    T: Float
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for NotNan<T> where
    T: Float
[src]

impl<T: Debug> Debug for NotNan<T> where
    T: Float
[src]

[src]

Formats the value using the given formatter.

impl<T: Default> Default for NotNan<T> where
    T: Float
[src]

[src]

Returns the "default value" for a type. Read more

impl<T: PartialEq> PartialEq for NotNan<T> where
    T: Float
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: PartialOrd> PartialOrd for NotNan<T> where
    T: Float
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T> AsRef<T> for NotNan<T> where
    T: Float
[src]

[src]

Performs the conversion.

impl Into<f32> for NotNan<f32>
[src]

[src]

Performs the conversion.

impl Into<f64> for NotNan<f64>
[src]

[src]

Performs the conversion.

impl<T> Add for NotNan<T> where
    T: Float
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<T> Add<T> for NotNan<T> where
    T: Float
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<T> AddAssign for NotNan<T> where
    T: Float
[src]

[src]

Performs the += operation.

impl<T> AddAssign<T> for NotNan<T> where
    T: Float
[src]

[src]

Performs the += operation.

impl<T> Bounded for NotNan<T> where
    T: Float
[src]

[src]

returns the smallest finite number this type can represent

[src]

returns the largest finite number this type can represent

impl<T> Display for NotNan<T> where
    T: Display + Float
[src]

[src]

Formats the value using the given formatter. Read more

impl<T> Div for NotNan<T> where
    T: Float
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<T> Div<T> for NotNan<T> where
    T: Float
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<T> DivAssign for NotNan<T> where
    T: Float
[src]

[src]

Performs the /= operation.

impl<T> DivAssign<T> for NotNan<T> where
    T: Float
[src]

[src]

Performs the /= operation.

impl<T> Eq for NotNan<T> where
    T: Float
[src]

impl<T> FromPrimitive for NotNan<T> where
    T: Float + FromPrimitive
[src]

[src]

Convert an i8 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an u8 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an i16 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an u16 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an i32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an u32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an i64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an u64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an isize to return an optional value of this type. If the value cannot be represented by this value, the None is returned. Read more

[src]

Convert a usize to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert a f32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert a f64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

impl<T> Hash for NotNan<T> where
    T: Float
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> Mul for NotNan<T> where
    T: Float
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<T> Mul<T> for NotNan<T> where
    T: Float
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<T> MulAssign for NotNan<T> where
    T: Float
[src]

[src]

Performs the *= operation.

impl<T> MulAssign<T> for NotNan<T> where
    T: Float
[src]

[src]

Performs the *= operation.

impl<T> Neg for NotNan<T> where
    T: Float + Num
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl<T> Num for NotNan<T> where
    T: Float + Num
[src]

[src]

Convert from a string and radix <= 36. Read more

impl<T> NumCast for NotNan<T> where
    T: Float + Num
[src]

[src]

Creates a number from another value that can be converted into a primitive via the ToPrimitive trait. Read more

impl<T> One for NotNan<T> where
    T: Float
[src]

[src]

Returns the multiplicative identity element of Self, 1. Read more

impl<T> Ord for NotNan<T> where
    T: Float
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl<T> Real for NotNan<T> where
    T: Float
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl<T> Rem for NotNan<T> where
    T: Float
[src]

The resulting type after applying the % operator.

[src]

Performs the % operation.

impl<T> Rem<T> for NotNan<T> where
    T: Float
[src]

The resulting type after applying the % operator.

[src]

Performs the % operation.

impl<T> RemAssign for NotNan<T> where
    T: Float
[src]

[src]

Performs the %= operation.

impl<T> RemAssign<T> for NotNan<T> where
    T: Float
[src]

[src]

Performs the %= operation.

impl<T> Signed for NotNan<T> where
    T: Float + Signed
[src]

[src]

Computes the absolute value. Read more

[src]

The positive difference of two numbers. Read more

[src]

Returns the sign of the number. Read more

[src]

Returns true if the number is positive and false if the number is zero or negative.

[src]

Returns true if the number is negative and false if the number is zero or positive.

impl<T> Sub for NotNan<T> where
    T: Float
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<T> Sub<T> for NotNan<T> where
    T: Float
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<T> SubAssign for NotNan<T> where
    T: Float
[src]

[src]

Performs the -= operation.

impl<T> SubAssign<T> for NotNan<T> where
    T: Float
[src]

[src]

Performs the -= operation.

impl<T> ToPrimitive for NotNan<T> where
    T: Float + ToPrimitive
[src]

[src]

Converts the value of self to an i8.

[src]

Converts the value of self to an u8.

[src]

Converts the value of self to an i16.

[src]

Converts the value of self to an u16.

[src]

Converts the value of self to an i32.

[src]

Converts the value of self to an u32.

[src]

Converts the value of self to an i64.

[src]

Converts the value of self to an u64.

[src]

Converts the value of self to an isize.

[src]

Converts the value of self to a usize.

[src]

Converts the value of self to an f32.

[src]

Converts the value of self to an f64.

impl<T> Zero for NotNan<T> where
    T: Float
[src]

[src]

Returns the additive identity element of Self, 0. Read more

[src]

Returns true if self is equal to the additive identity.