[][src]Struct kurobako_core::num::FiniteF64

pub struct FiniteF64(_);

An floating point number that is neither infinite nor NaN.

Methods

impl FiniteF64[src]

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

Creates a FiniteF64 instance without checking the value.

Safety

The value must not be NaN or infinite.

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

Creates a finite number.

Error

If the given value is NaN or infinite, 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<FiniteF64> for FiniteF64[src]

impl MulAssign<FiniteF64> for FiniteF64[src]

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

impl Add<FiniteF64> for FiniteF64[src]

type Output = FiniteF64

The resulting type after applying the + operator.

impl Sub<FiniteF64> for FiniteF64[src]

type Output = FiniteF64

The resulting type after applying the - operator.

impl Eq for FiniteF64[src]

impl Default for FiniteF64[src]

impl Mul<FiniteF64> for FiniteF64[src]

type Output = FiniteF64

The resulting type after applying the * operator.

impl Clone for FiniteF64[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<FiniteF64> for FiniteF64[src]

impl Div<FiniteF64> for FiniteF64[src]

type Output = FiniteF64

The resulting type after applying the / operator.

impl SubAssign<FiniteF64> for FiniteF64[src]

impl Debug for FiniteF64[src]

impl Display for FiniteF64[src]

impl DivAssign<FiniteF64> for FiniteF64[src]

impl Serialize for FiniteF64[src]

impl Ord for FiniteF64[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 FiniteF64[src]

impl AddAssign<FiniteF64> for FiniteF64[src]

Auto Trait Implementations

impl Send for FiniteF64

impl Sync for FiniteF64

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]