[][src]Enum koto_runtime::ValueNumber

pub enum ValueNumber {
    F64(f64),
    I64(i64),
}

Variants

F64(f64)
I64(i64)

Implementations

impl ValueNumber[src]

pub fn abs(self) -> Self[src]

pub fn ceil(self) -> Self[src]

pub fn floor(self) -> Self[src]

pub fn is_f64(self) -> bool[src]

pub fn is_nan(self) -> bool[src]

pub fn pow(self, other: Self) -> Self[src]

pub fn to_bits(self) -> u64[src]

Trait Implementations

impl Add<&'_ Num2> for &ValueNumber[src]

type Output = Num2

The resulting type after applying the + operator.

impl Add<&'_ Num4> for &ValueNumber[src]

type Output = Num4

The resulting type after applying the + operator.

impl Add<&'_ ValueNumber> for &Num2[src]

type Output = Num2

The resulting type after applying the + operator.

impl Add<&'_ ValueNumber> for &Num4[src]

type Output = Num4

The resulting type after applying the + operator.

impl Add<&'_ ValueNumber> for &ValueNumber[src]

type Output = ValueNumber

The resulting type after applying the + operator.

impl Add<Num2> for ValueNumber[src]

type Output = Num2

The resulting type after applying the + operator.

impl Add<Num4> for ValueNumber[src]

type Output = Num4

The resulting type after applying the + operator.

impl Add<ValueNumber> for Num2[src]

type Output = Num2

The resulting type after applying the + operator.

impl Add<ValueNumber> for Num4[src]

type Output = Num4

The resulting type after applying the + operator.

impl Add<ValueNumber> for ValueNumber[src]

type Output = ValueNumber

The resulting type after applying the + operator.

impl Clone for ValueNumber[src]

impl Copy for ValueNumber[src]

impl Debug for ValueNumber[src]

impl Display for ValueNumber[src]

impl Div<&'_ Num2> for &ValueNumber[src]

type Output = Num2

The resulting type after applying the / operator.

impl Div<&'_ Num4> for &ValueNumber[src]

type Output = Num4

The resulting type after applying the / operator.

impl Div<&'_ ValueNumber> for &Num2[src]

type Output = Num2

The resulting type after applying the / operator.

impl Div<&'_ ValueNumber> for &Num4[src]

type Output = Num4

The resulting type after applying the / operator.

impl Div<&'_ ValueNumber> for &ValueNumber[src]

type Output = ValueNumber

The resulting type after applying the / operator.

impl Div<Num2> for ValueNumber[src]

type Output = Num2

The resulting type after applying the / operator.

impl Div<Num4> for ValueNumber[src]

type Output = Num4

The resulting type after applying the / operator.

impl Div<ValueNumber> for Num2[src]

type Output = Num2

The resulting type after applying the / operator.

impl Div<ValueNumber> for Num4[src]

type Output = Num4

The resulting type after applying the / operator.

impl Div<ValueNumber> for ValueNumber[src]

type Output = ValueNumber

The resulting type after applying the / operator.

impl Eq for ValueNumber[src]

impl From<&'_ f32> for ValueNumber[src]

impl From<&'_ f64> for ValueNumber[src]

impl From<&'_ i32> for ValueNumber[src]

impl From<&'_ i64> for ValueNumber[src]

impl From<&'_ isize> for ValueNumber[src]

impl From<&'_ u32> for ValueNumber[src]

impl From<&'_ u64> for ValueNumber[src]

impl From<&'_ usize> for ValueNumber[src]

impl From<f32> for ValueNumber[src]

impl From<f64> for ValueNumber[src]

impl From<i32> for ValueNumber[src]

impl From<i64> for ValueNumber[src]

impl From<isize> for ValueNumber[src]

impl From<u32> for ValueNumber[src]

impl From<u64> for ValueNumber[src]

impl From<usize> for ValueNumber[src]

impl Hash for ValueNumber[src]

impl Mul<&'_ Num2> for &ValueNumber[src]

type Output = Num2

The resulting type after applying the * operator.

impl Mul<&'_ Num4> for &ValueNumber[src]

type Output = Num4

The resulting type after applying the * operator.

impl Mul<&'_ ValueNumber> for &Num2[src]

type Output = Num2

The resulting type after applying the * operator.

impl Mul<&'_ ValueNumber> for &Num4[src]

type Output = Num4

The resulting type after applying the * operator.

impl Mul<&'_ ValueNumber> for &ValueNumber[src]

type Output = ValueNumber

The resulting type after applying the * operator.

impl Mul<Num2> for ValueNumber[src]

type Output = Num2

The resulting type after applying the * operator.

impl Mul<Num4> for ValueNumber[src]

type Output = Num4

The resulting type after applying the * operator.

impl Mul<ValueNumber> for Num2[src]

type Output = Num2

The resulting type after applying the * operator.

impl Mul<ValueNumber> for Num4[src]

type Output = Num4

The resulting type after applying the * operator.

impl Mul<ValueNumber> for ValueNumber[src]

type Output = ValueNumber

The resulting type after applying the * operator.

impl Neg for ValueNumber[src]

type Output = ValueNumber

The resulting type after applying the - operator.

impl Neg for &ValueNumber[src]

type Output = ValueNumber

The resulting type after applying the - operator.

impl Ord for ValueNumber[src]

impl PartialEq<ValueNumber> for ValueNumber[src]

impl PartialEq<f32> for ValueNumber[src]

impl PartialEq<f64> for ValueNumber[src]

impl PartialEq<i32> for ValueNumber[src]

impl PartialEq<i64> for ValueNumber[src]

impl PartialEq<isize> for ValueNumber[src]

impl PartialEq<u32> for ValueNumber[src]

impl PartialEq<u64> for ValueNumber[src]

impl PartialEq<usize> for ValueNumber[src]

impl PartialOrd<ValueNumber> for ValueNumber[src]

impl PartialOrd<f32> for ValueNumber[src]

impl PartialOrd<f64> for ValueNumber[src]

impl PartialOrd<i32> for ValueNumber[src]

impl PartialOrd<i64> for ValueNumber[src]

impl PartialOrd<isize> for ValueNumber[src]

impl PartialOrd<u32> for ValueNumber[src]

impl PartialOrd<u64> for ValueNumber[src]

impl PartialOrd<usize> for ValueNumber[src]

impl Rem<&'_ Num2> for &ValueNumber[src]

type Output = Num2

The resulting type after applying the % operator.

impl Rem<&'_ Num4> for &ValueNumber[src]

type Output = Num4

The resulting type after applying the % operator.

impl Rem<&'_ ValueNumber> for &Num2[src]

type Output = Num2

The resulting type after applying the % operator.

impl Rem<&'_ ValueNumber> for &Num4[src]

type Output = Num4

The resulting type after applying the % operator.

impl Rem<&'_ ValueNumber> for &ValueNumber[src]

type Output = ValueNumber

The resulting type after applying the % operator.

impl Rem<Num2> for ValueNumber[src]

type Output = Num2

The resulting type after applying the % operator.

impl Rem<Num4> for ValueNumber[src]

type Output = Num4

The resulting type after applying the % operator.

impl Rem<ValueNumber> for Num2[src]

type Output = Num2

The resulting type after applying the % operator.

impl Rem<ValueNumber> for Num4[src]

type Output = Num4

The resulting type after applying the % operator.

impl Rem<ValueNumber> for ValueNumber[src]

type Output = ValueNumber

The resulting type after applying the % operator.

impl Sub<&'_ Num2> for &ValueNumber[src]

type Output = Num2

The resulting type after applying the - operator.

impl Sub<&'_ Num4> for &ValueNumber[src]

type Output = Num4

The resulting type after applying the - operator.

impl Sub<&'_ ValueNumber> for &Num2[src]

type Output = Num2

The resulting type after applying the - operator.

impl Sub<&'_ ValueNumber> for &Num4[src]

type Output = Num4

The resulting type after applying the - operator.

impl Sub<&'_ ValueNumber> for &ValueNumber[src]

type Output = ValueNumber

The resulting type after applying the - operator.

impl Sub<Num2> for ValueNumber[src]

type Output = Num2

The resulting type after applying the - operator.

impl Sub<Num4> for ValueNumber[src]

type Output = Num4

The resulting type after applying the - operator.

impl Sub<ValueNumber> for Num2[src]

type Output = Num2

The resulting type after applying the - operator.

impl Sub<ValueNumber> for Num4[src]

type Output = Num4

The resulting type after applying the - operator.

impl Sub<ValueNumber> for ValueNumber[src]

type Output = ValueNumber

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.