Type Alias ndarray_histogram::N32

source ·
pub type N32 = NotNan<f32>;
Expand description

A number exclusive NaN and hence not implementing Float.

Aliased Type§

struct N32(/* private fields */);

Implementations

source§

impl<T> NotNan<T>
where T: FloatCore,

source

pub fn new(val: T) -> Result<NotNan<T>, FloatIsNan>

Create a NotNan value.

Returns Err if val is NaN

source§

impl<T> NotNan<T>

source

pub fn into_inner(self) -> T

Get the value out.

source

pub const unsafe fn new_unchecked(val: T) -> NotNan<T>

Create a NotNan value from a value that is guaranteed to not be NaN

Safety

Behaviour is undefined if val is NaN

source

pub const unsafe fn unchecked_new(val: T) -> NotNan<T>

👎Deprecated since 2.5.0: Please use the new_unchecked function instead.

Create a NotNan value from a value that is guaranteed to not be NaN

Safety

Behaviour is undefined if val is NaN

Trait Implementations

source§

impl<T> Ord for NotNan<T>
where T: FloatCore,

source§

fn cmp(&self, other: &NotNan<T>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl<T> Deref for NotNan<T>
where T: FloatCore,

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &<NotNan<T> as Deref>::Target

Dereferences the value.
source§

impl<T> PartialOrd for NotNan<T>
where T: PartialOrd,

source§

fn partial_cmp(&self, other: &NotNan<T>) -> Option<Ordering>

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

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

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

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

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

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

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

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

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

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

source§

fn clone(&self) -> NotNan<T>

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<T> Div for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the / operator.
source§

fn div(self, other: NotNan<T>) -> NotNan<T>

Performs the / operation. Read more
source§

impl<T> Div<T> for NotNan<T>
where T: FloatCore,

Divides a float directly.

Panics if the provided value is NaN or the computation results in NaN

§

type Output = NotNan<T>

The resulting type after applying the / operator.
source§

fn div(self, other: T) -> NotNan<T>

Performs the / operation. Read more
source§

impl<T> Div<&T> for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the / operator.
source§

fn div(self, other: &T) -> <NotNan<T> as Div<&T>>::Output

Performs the / operation. Read more
source§

impl<T> Div<&NotNan<T>> for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the / operator.
source§

fn div(self, other: &NotNan<T>) -> <NotNan<T> as Div<&NotNan<T>>>::Output

Performs the / operation. Read more
source§

impl<T> PartialEq<T> for NotNan<T>
where T: FloatCore,

source§

fn eq(&self, other: &T) -> 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<T> PartialEq for NotNan<T>
where T: PartialEq,

source§

fn eq(&self, other: &NotNan<T>) -> 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<T> Add for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the + operator.
source§

fn add(self, other: NotNan<T>) -> NotNan<T>

Performs the + operation. Read more
source§

impl<T> Add<&T> for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the + operator.
source§

fn add(self, other: &T) -> <NotNan<T> as Add<&T>>::Output

Performs the + operation. Read more
source§

impl<T> Add<&NotNan<T>> for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the + operator.
source§

fn add(self, other: &NotNan<T>) -> <NotNan<T> as Add<&NotNan<T>>>::Output

Performs the + operation. Read more
source§

impl<T> Add<T> for NotNan<T>
where T: FloatCore,

Adds a float directly.

Panics if the provided value is NaN or the computation results in NaN

§

type Output = NotNan<T>

The resulting type after applying the + operator.
source§

fn add(self, other: T) -> NotNan<T>

Performs the + operation. Read more
source§

impl<T> MulAssign<T> for NotNan<T>
where T: FloatCore + MulAssign,

source§

fn mul_assign(&mut self, other: T)

Performs the *= operation. Read more
source§

impl<T> MulAssign<&T> for NotNan<T>
where T: FloatCore + MulAssign,

source§

fn mul_assign(&mut self, other: &T)

Performs the *= operation. Read more
source§

impl<T> MulAssign<&NotNan<T>> for NotNan<T>
where T: FloatCore + MulAssign,

source§

fn mul_assign(&mut self, other: &NotNan<T>)

Performs the *= operation. Read more
source§

impl<T> MulAssign for NotNan<T>
where T: FloatCore + MulAssign,

source§

fn mul_assign(&mut self, other: NotNan<T>)

Performs the *= operation. Read more
source§

impl Borrow<f32> for NotNan<f32>

source§

fn borrow(&self) -> &f32

Immutably borrows from an owned value. Read more
source§

impl<T> ToPrimitive for NotNan<T>
where T: FloatCore,

source§

fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be represented by an i64, then None is returned.
source§

fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned.
source§

fn to_isize(&self) -> Option<isize>

Converts the value of self to an isize. If the value cannot be represented by an isize, then None is returned.
source§

fn to_i8(&self) -> Option<i8>

Converts the value of self to an i8. If the value cannot be represented by an i8, then None is returned.
source§

fn to_i16(&self) -> Option<i16>

Converts the value of self to an i16. If the value cannot be represented by an i16, then None is returned.
source§

fn to_i32(&self) -> Option<i32>

Converts the value of self to an i32. If the value cannot be represented by an i32, then None is returned.
source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned.
source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned.
source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned.
source§

fn to_u32(&self) -> Option<u32>

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned.
source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32.
source§

fn to_f64(&self) -> Option<f64>

Converts the value of self to an f64. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f64. Read more
source§

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more
source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more
source§

impl<T> Neg for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the - operator.
source§

fn neg(self) -> NotNan<T>

Performs the unary - operation. Read more
source§

impl<T> Hash for NotNan<T>
where T: FloatCore,

source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<T> Display for NotNan<T>
where T: FloatCore + Display,

source§

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

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

impl<T> FromPrimitive for NotNan<T>

source§

fn from_i64(n: i64) -> Option<NotNan<T>>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u64(n: u64) -> Option<NotNan<T>>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_isize(n: isize) -> Option<NotNan<T>>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i8(n: i8) -> Option<NotNan<T>>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i16(n: i16) -> Option<NotNan<T>>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i32(n: i32) -> Option<NotNan<T>>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_usize(n: usize) -> Option<NotNan<T>>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u8(n: u8) -> Option<NotNan<T>>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u16(n: u16) -> Option<NotNan<T>>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u32(n: u32) -> Option<NotNan<T>>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_f32(n: f32) -> Option<NotNan<T>>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_f64(n: f64) -> Option<NotNan<T>>

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

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

impl<T> Mul for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the * operator.
source§

fn mul(self, other: NotNan<T>) -> NotNan<T>

Performs the * operation. Read more
source§

impl<T> Mul<&T> for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the * operator.
source§

fn mul(self, other: &T) -> <NotNan<T> as Mul<&T>>::Output

Performs the * operation. Read more
source§

impl<T> Mul<T> for NotNan<T>
where T: FloatCore,

Multiplies a float directly.

Panics if the provided value is NaN or the computation results in NaN

§

type Output = NotNan<T>

The resulting type after applying the * operator.
source§

fn mul(self, other: T) -> NotNan<T>

Performs the * operation. Read more
source§

impl<T> Mul<&NotNan<T>> for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the * operator.
source§

fn mul(self, other: &NotNan<T>) -> <NotNan<T> as Mul<&NotNan<T>>>::Output

Performs the * operation. Read more
source§

impl<T> AsRef<T> for NotNan<T>
where T: FloatCore,

source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl From<i8> for NotNan<f32>

source§

fn from(source: i8) -> NotNan<f32>

Converts to this type from the input type.
source§

impl From<u8> for NotNan<f32>

source§

fn from(source: u8) -> NotNan<f32>

Converts to this type from the input type.
source§

impl From<u16> for NotNan<f32>

source§

fn from(source: u16) -> NotNan<f32>

Converts to this type from the input type.
source§

impl From<i16> for NotNan<f32>

source§

fn from(source: i16) -> NotNan<f32>

Converts to this type from the input type.
source§

impl<T> AddAssign<&T> for NotNan<T>
where T: FloatCore + AddAssign,

source§

fn add_assign(&mut self, other: &T)

Performs the += operation. Read more
source§

impl<T> AddAssign for NotNan<T>
where T: FloatCore + AddAssign,

source§

fn add_assign(&mut self, other: NotNan<T>)

Performs the += operation. Read more
source§

impl<T> AddAssign<T> for NotNan<T>
where T: FloatCore + AddAssign,

source§

fn add_assign(&mut self, other: T)

Performs the += operation. Read more
source§

impl<T> AddAssign<&NotNan<T>> for NotNan<T>
where T: FloatCore + AddAssign,

source§

fn add_assign(&mut self, other: &NotNan<T>)

Performs the += operation. Read more
source§

impl<T> Sum for NotNan<T>
where T: FloatCore + Sum,

Adds a float directly.

Panics if the provided value is NaN.

source§

fn sum<I>(iter: I) -> NotNan<T>
where I: Iterator<Item = NotNan<T>>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<'a, T> Sum<&'a NotNan<T>> for NotNan<T>
where T: FloatCore + Sum + 'a,

source§

fn sum<I>(iter: I) -> NotNan<T>
where I: Iterator<Item = &'a NotNan<T>>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<T> FromStr for NotNan<T>
where T: FloatCore + FromStr,

source§

fn from_str(src: &str) -> Result<NotNan<T>, <NotNan<T> as FromStr>::Err>

Convert a &str to NotNan. Returns an error if the string fails to parse, or if the resulting value is NaN

use ordered_float::NotNan;

assert!("-10".parse::<NotNan<f32>>().is_ok());
assert!("abc".parse::<NotNan<f32>>().is_err());
assert!("NaN".parse::<NotNan<f32>>().is_err());
§

type Err = ParseNotNanError<<T as FromStr>::Err>

The associated error which can be returned from parsing.
source§

impl<T> StructuralPartialEq for NotNan<T>

source§

impl<T> Sub for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the - operator.
source§

fn sub(self, other: NotNan<T>) -> NotNan<T>

Performs the - operation. Read more
source§

impl<T> Sub<&T> for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the - operator.
source§

fn sub(self, other: &T) -> <NotNan<T> as Sub<&T>>::Output

Performs the - operation. Read more
source§

impl<T> Sub<T> for NotNan<T>
where T: FloatCore,

Subtracts a float directly.

Panics if the provided value is NaN or the computation results in NaN

§

type Output = NotNan<T>

The resulting type after applying the - operator.
source§

fn sub(self, other: T) -> NotNan<T>

Performs the - operation. Read more
source§

impl<T> Sub<&NotNan<T>> for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the - operator.
source§

fn sub(self, other: &NotNan<T>) -> <NotNan<T> as Sub<&NotNan<T>>>::Output

Performs the - operation. Read more
source§

impl AsPrimitive<i32> for NotNan<f32>

source§

fn as_(self) -> i32

Convert a value to another, using the as operator.
source§

impl AsPrimitive<i64> for NotNan<f32>

source§

fn as_(self) -> i64

Convert a value to another, using the as operator.
source§

impl AsPrimitive<u64> for NotNan<f32>

source§

fn as_(self) -> u64

Convert a value to another, using the as operator.
source§

impl AsPrimitive<f32> for NotNan<f32>

source§

fn as_(self) -> f32

Convert a value to another, using the as operator.
source§

impl AsPrimitive<i16> for NotNan<f32>

source§

fn as_(self) -> i16

Convert a value to another, using the as operator.
source§

impl AsPrimitive<f64> for NotNan<f32>

source§

fn as_(self) -> f64

Convert a value to another, using the as operator.
source§

impl AsPrimitive<NotNan<f32>> for NotNan<f32>

source§

fn as_(self) -> NotNan<f32>

Convert a value to another, using the as operator.
source§

impl AsPrimitive<u8> for NotNan<f32>

source§

fn as_(self) -> u8

Convert a value to another, using the as operator.
source§

impl AsPrimitive<NotNan<f64>> for NotNan<f32>

source§

fn as_(self) -> NotNan<f64>

Convert a value to another, using the as operator.
source§

impl AsPrimitive<u16> for NotNan<f32>

source§

fn as_(self) -> u16

Convert a value to another, using the as operator.
source§

impl AsPrimitive<i8> for NotNan<f32>

source§

fn as_(self) -> i8

Convert a value to another, using the as operator.
source§

impl AsPrimitive<isize> for NotNan<f32>

source§

fn as_(self) -> isize

Convert a value to another, using the as operator.
source§

impl AsPrimitive<u32> for NotNan<f32>

source§

fn as_(self) -> u32

Convert a value to another, using the as operator.
source§

impl AsPrimitive<usize> for NotNan<f32>

source§

fn as_(self) -> usize

Convert a value to another, using the as operator.
source§

impl<T> DivAssign<&NotNan<T>> for NotNan<T>
where T: FloatCore + DivAssign,

source§

fn div_assign(&mut self, other: &NotNan<T>)

Performs the /= operation. Read more
source§

impl<T> DivAssign<&T> for NotNan<T>
where T: FloatCore + DivAssign,

source§

fn div_assign(&mut self, other: &T)

Performs the /= operation. Read more
source§

impl<T> DivAssign<T> for NotNan<T>
where T: FloatCore + DivAssign,

source§

fn div_assign(&mut self, other: T)

Performs the /= operation. Read more
source§

impl<T> DivAssign for NotNan<T>
where T: FloatCore + DivAssign,

source§

fn div_assign(&mut self, other: NotNan<T>)

Performs the /= operation. Read more
source§

impl<T> RemAssign<&NotNan<T>> for NotNan<T>
where T: FloatCore + RemAssign,

source§

fn rem_assign(&mut self, other: &NotNan<T>)

Performs the %= operation. Read more
source§

impl<T> RemAssign<T> for NotNan<T>
where T: FloatCore + RemAssign,

source§

fn rem_assign(&mut self, other: T)

Performs the %= operation. Read more
source§

impl<T> RemAssign<&T> for NotNan<T>
where T: FloatCore + RemAssign,

source§

fn rem_assign(&mut self, other: &T)

Performs the %= operation. Read more
source§

impl<T> RemAssign for NotNan<T>
where T: FloatCore + RemAssign,

source§

fn rem_assign(&mut self, other: NotNan<T>)

Performs the %= operation. Read more
source§

impl<T> FloatConst for NotNan<T>
where T: FloatConst,

source§

fn E() -> NotNan<T>

Return Euler’s number.
source§

fn FRAC_1_PI() -> NotNan<T>

Return 1.0 / π.
source§

fn FRAC_1_SQRT_2() -> NotNan<T>

Return 1.0 / sqrt(2.0).
source§

fn FRAC_2_PI() -> NotNan<T>

Return 2.0 / π.
source§

fn FRAC_2_SQRT_PI() -> NotNan<T>

Return 2.0 / sqrt(π).
source§

fn FRAC_PI_2() -> NotNan<T>

Return π / 2.0.
source§

fn FRAC_PI_3() -> NotNan<T>

Return π / 3.0.
source§

fn FRAC_PI_4() -> NotNan<T>

Return π / 4.0.
source§

fn FRAC_PI_6() -> NotNan<T>

Return π / 6.0.
source§

fn FRAC_PI_8() -> NotNan<T>

Return π / 8.0.
source§

fn LN_10() -> NotNan<T>

Return ln(10.0).
source§

fn LN_2() -> NotNan<T>

Return ln(2.0).
source§

fn LOG10_E() -> NotNan<T>

Return log10(e).
source§

fn LOG2_E() -> NotNan<T>

Return log2(e).
source§

fn PI() -> NotNan<T>

Return Archimedes’ constant π.
source§

fn SQRT_2() -> NotNan<T>

Return sqrt(2.0).
source§

impl<T> Default for NotNan<T>
where T: Default,

source§

fn default() -> NotNan<T>

Returns the “default value” for a type. Read more
source§

impl TryFrom<f32> for NotNan<f32>

§

type Error = FloatIsNan

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

fn try_from(v: f32) -> Result<NotNan<f32>, <NotNan<f32> as TryFrom<f32>>::Error>

Performs the conversion.
source§

impl<T> NumCast for NotNan<T>
where T: FloatCore,

source§

fn from<F>(n: F) -> Option<NotNan<T>>
where F: ToPrimitive,

Creates a number from another value that can be converted into a primitive via the ToPrimitive trait. If the source value cannot be represented by the target type, then None is returned. Read more
source§

impl<T> Zero for NotNan<T>
where T: FloatCore,

source§

fn zero() -> NotNan<T>

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

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
source§

impl<T> Num for NotNan<T>
where T: FloatCore,

§

type FromStrRadixErr = ParseNotNanError<<T as Num>::FromStrRadixErr>

source§

fn from_str_radix( src: &str, radix: u32 ) -> Result<NotNan<T>, <NotNan<T> as Num>::FromStrRadixErr>

Convert from a string and radix (typically 2..=36). Read more
source§

impl<T> Bounded for NotNan<T>
where T: FloatCore,

source§

fn min_value() -> NotNan<T>

Returns the smallest finite number this type can represent
source§

fn max_value() -> NotNan<T>

Returns the largest finite number this type can represent
source§

impl<T> Copy for NotNan<T>
where T: Copy,

source§

impl<T> Rem<&NotNan<T>> for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the % operator.
source§

fn rem(self, other: &NotNan<T>) -> <NotNan<T> as Rem<&NotNan<T>>>::Output

Performs the % operation. Read more
source§

impl<T> Rem<&T> for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the % operator.
source§

fn rem(self, other: &T) -> <NotNan<T> as Rem<&T>>::Output

Performs the % operation. Read more
source§

impl<T> Rem for NotNan<T>
where T: FloatCore,

§

type Output = NotNan<T>

The resulting type after applying the % operator.
source§

fn rem(self, other: NotNan<T>) -> NotNan<T>

Performs the % operation. Read more
source§

impl<T> Rem<T> for NotNan<T>
where T: FloatCore,

Calculates % with a float directly.

Panics if the provided value is NaN or the computation results in NaN

§

type Output = NotNan<T>

The resulting type after applying the % operator.
source§

fn rem(self, other: T) -> NotNan<T>

Performs the % operation. Read more
source§

impl<T> Debug for NotNan<T>
where T: Debug,

source§

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

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

impl<T> SubAssign for NotNan<T>
where T: FloatCore + SubAssign,

source§

fn sub_assign(&mut self, other: NotNan<T>)

Performs the -= operation. Read more
source§

impl<T> SubAssign<&T> for NotNan<T>
where T: FloatCore + SubAssign,

source§

fn sub_assign(&mut self, other: &T)

Performs the -= operation. Read more
source§

impl<T> SubAssign<T> for NotNan<T>
where T: FloatCore + SubAssign,

source§

fn sub_assign(&mut self, other: T)

Performs the -= operation. Read more
source§

impl<T> SubAssign<&NotNan<T>> for NotNan<T>
where T: FloatCore + SubAssign,

source§

fn sub_assign(&mut self, other: &NotNan<T>)

Performs the -= operation. Read more
source§

impl<T> Product for NotNan<T>
where T: FloatCore + Product,

source§

fn product<I>(iter: I) -> NotNan<T>
where I: Iterator<Item = NotNan<T>>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<'a, T> Product<&'a NotNan<T>> for NotNan<T>
where T: FloatCore + Product + 'a,

source§

fn product<I>(iter: I) -> NotNan<T>
where I: Iterator<Item = &'a NotNan<T>>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<T> Eq for NotNan<T>
where T: FloatCore + PartialEq,

source§

impl<'a> Pow<&'a i32> for NotNan<f32>

§

type Output = NotNan<f32>

The result after applying the operator.
source§

fn pow(self, rhs: &'a i32) -> NotNan<f32>

Returns self to the power rhs. Read more
source§

impl<'a> Pow<&'a u16> for NotNan<f32>

§

type Output = NotNan<f32>

The result after applying the operator.
source§

fn pow(self, rhs: &'a u16) -> NotNan<f32>

Returns self to the power rhs. Read more
source§

impl<'a> Pow<&'a u8> for NotNan<f32>

§

type Output = NotNan<f32>

The result after applying the operator.
source§

fn pow(self, rhs: &'a u8) -> NotNan<f32>

Returns self to the power rhs. Read more
source§

impl Pow<NotNan<f32>> for NotNan<f32>

§

type Output = NotNan<f32>

The result after applying the operator.
source§

fn pow(self, rhs: NotNan<f32>) -> NotNan<f32>

Returns self to the power rhs. Read more
source§

impl Pow<u16> for NotNan<f32>

§

type Output = NotNan<f32>

The result after applying the operator.
source§

fn pow(self, rhs: u16) -> NotNan<f32>

Returns self to the power rhs. Read more
source§

impl<'a> Pow<&'a i16> for NotNan<f32>

§

type Output = NotNan<f32>

The result after applying the operator.
source§

fn pow(self, rhs: &'a i16) -> NotNan<f32>

Returns self to the power rhs. Read more
source§

impl Pow<i32> for NotNan<f32>

§

type Output = NotNan<f32>

The result after applying the operator.
source§

fn pow(self, rhs: i32) -> NotNan<f32>

Returns self to the power rhs. Read more
source§

impl Pow<i16> for NotNan<f32>

§

type Output = NotNan<f32>

The result after applying the operator.
source§

fn pow(self, rhs: i16) -> NotNan<f32>

Returns self to the power rhs. Read more
source§

impl<'a> Pow<&'a NotNan<f32>> for NotNan<f32>

§

type Output = NotNan<f32>

The result after applying the operator.
source§

fn pow(self, rhs: &'a NotNan<f32>) -> NotNan<f32>

Returns self to the power rhs. Read more
source§

impl<'a> Pow<&'a f32> for NotNan<f32>

§

type Output = NotNan<f32>

The result after applying the operator.
source§

fn pow(self, rhs: &'a f32) -> NotNan<f32>

Returns self to the power rhs. Read more
source§

impl Pow<i8> for NotNan<f32>

§

type Output = NotNan<f32>

The result after applying the operator.
source§

fn pow(self, rhs: i8) -> NotNan<f32>

Returns self to the power rhs. Read more
source§

impl Pow<u8> for NotNan<f32>

§

type Output = NotNan<f32>

The result after applying the operator.
source§

fn pow(self, rhs: u8) -> NotNan<f32>

Returns self to the power rhs. Read more
source§

impl Pow<f32> for NotNan<f32>

§

type Output = NotNan<f32>

The result after applying the operator.
source§

fn pow(self, rhs: f32) -> NotNan<f32>

Returns self to the power rhs. Read more
source§

impl<'a> Pow<&'a i8> for NotNan<f32>

§

type Output = NotNan<f32>

The result after applying the operator.
source§

fn pow(self, rhs: &'a i8) -> NotNan<f32>

Returns self to the power rhs. Read more
source§

impl<T> One for NotNan<T>
where T: FloatCore,

source§

fn one() -> NotNan<T>

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

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
source§

fn is_one(&self) -> bool
where Self: PartialEq,

Returns true if self is equal to the multiplicative identity. Read more
source§

impl<T> Signed for NotNan<T>
where T: FloatCore + Signed,

source§

fn abs(&self) -> NotNan<T>

Computes the absolute value. Read more
source§

fn abs_sub(&self, other: &NotNan<T>) -> NotNan<T>

The positive difference of two numbers. Read more
source§

fn signum(&self) -> NotNan<T>

Returns the sign of the number. Read more
source§

fn is_positive(&self) -> bool

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

fn is_negative(&self) -> bool

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