[−][src]Struct kurobako_core::num::NonNanF64
An floating point number that is known not NaN.
Methods
impl NonNanF64
[src]
pub const unsafe fn new_unchecked(n: f64) -> NonNanF64
[src]
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]
fn partial_cmp(&self, other: &NonNanF64) -> Option<Ordering>
[src]
fn lt(&self, other: &NonNanF64) -> bool
[src]
fn le(&self, other: &NonNanF64) -> bool
[src]
fn gt(&self, other: &NonNanF64) -> bool
[src]
fn ge(&self, other: &NonNanF64) -> bool
[src]
impl MulAssign<NonNanF64> for NonNanF64
[src]
fn mul_assign(&mut self, other: NonNanF64)
[src]
impl<'de> Deserialize<'de> for NonNanF64
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<NonNanF64, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<NonNanF64, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Add<NonNanF64> for NonNanF64
[src]
type Output = NonNanF64
The resulting type after applying the +
operator.
fn add(self, other: NonNanF64) -> <NonNanF64 as Add<NonNanF64>>::Output
[src]
impl Sub<NonNanF64> for NonNanF64
[src]
type Output = NonNanF64
The resulting type after applying the -
operator.
fn sub(self, other: NonNanF64) -> <NonNanF64 as Sub<NonNanF64>>::Output
[src]
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.
fn mul(self, other: NonNanF64) -> <NonNanF64 as Mul<NonNanF64>>::Output
[src]
impl Clone for NonNanF64
[src]
fn clone(&self) -> NonNanF64
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for NonNanF64
[src]
impl PartialEq<NonNanF64> for NonNanF64
[src]
impl Div<NonNanF64> for NonNanF64
[src]
type Output = NonNanF64
The resulting type after applying the /
operator.
fn div(self, other: NonNanF64) -> <NonNanF64 as Div<NonNanF64>>::Output
[src]
impl SubAssign<NonNanF64> for NonNanF64
[src]
fn sub_assign(&mut self, other: NonNanF64)
[src]
impl Serialize for NonNanF64
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl DivAssign<NonNanF64> for NonNanF64
[src]
fn div_assign(&mut self, other: NonNanF64)
[src]
impl Debug for NonNanF64
[src]
impl Ord for NonNanF64
[src]
fn cmp(&self, other: &NonNanF64) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl Copy for NonNanF64
[src]
impl AddAssign<NonNanF64> for NonNanF64
[src]
fn add_assign(&mut self, other: NonNanF64)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,