[][src]Struct kurobako_core::num::NonNanF64

pub struct NonNanF64(_);

An floating point number that is known not NaN.

Methods

impl NonNanF64[src]

pub const unsafe fn new_unchecked(n: f64) -> NonNanF64[src]

Creates a non NaN without checking the value.

Safety

The value must not be NaN.

pub fn new(n: f64) -> Result<NonNanF64, Error>[src]

Creates a non NaN if the given value is not NaN.

Error

If the given value is NaN, an ErrorKind::InvalidInput error will be returned.

pub const fn get(self) -> f64[src]

Returns the value as a primitive type.

Trait Implementations

impl PartialOrd<NonNanF64> for NonNanF64[src]

impl MulAssign<NonNanF64> for NonNanF64[src]

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

impl Add<NonNanF64> for NonNanF64[src]

type Output = NonNanF64

The resulting type after applying the + operator.

impl Sub<NonNanF64> for NonNanF64[src]

type Output = NonNanF64

The resulting type after applying the - operator.

impl Eq for NonNanF64[src]

impl Default for NonNanF64[src]

impl Mul<NonNanF64> for NonNanF64[src]

type Output = NonNanF64

The resulting type after applying the * operator.

impl Clone for NonNanF64[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<NonNanF64> for NonNanF64[src]

impl Div<NonNanF64> for NonNanF64[src]

type Output = NonNanF64

The resulting type after applying the / operator.

impl SubAssign<NonNanF64> for NonNanF64[src]

impl Debug for NonNanF64[src]

impl Display for NonNanF64[src]

impl DivAssign<NonNanF64> for NonNanF64[src]

impl Serialize for NonNanF64[src]

impl Ord for NonNanF64[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Copy for NonNanF64[src]

impl AddAssign<NonNanF64> for NonNanF64[src]

Auto Trait Implementations

impl Send for NonNanF64

impl Sync for NonNanF64

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]