[−][src]Enum koto_runtime::ValueNumber
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.
pub fn add(self, other: &Num2) -> Num2
[src]
impl Add<&'_ Num4> for &ValueNumber
[src]
type Output = Num4
The resulting type after applying the +
operator.
pub fn add(self, other: &Num4) -> Num4
[src]
impl Add<&'_ ValueNumber> for &Num2
[src]
type Output = Num2
The resulting type after applying the +
operator.
pub fn add(self, other: &ValueNumber) -> Num2
[src]
impl Add<&'_ ValueNumber> for &Num4
[src]
type Output = Num4
The resulting type after applying the +
operator.
pub fn add(self, other: &ValueNumber) -> Num4
[src]
impl Add<&'_ ValueNumber> for &ValueNumber
[src]
type Output = ValueNumber
The resulting type after applying the +
operator.
pub fn add(self, other: &ValueNumber) -> ValueNumber
[src]
impl Add<Num2> for ValueNumber
[src]
type Output = Num2
The resulting type after applying the +
operator.
pub fn add(self, other: Num2) -> Num2
[src]
impl Add<Num4> for ValueNumber
[src]
type Output = Num4
The resulting type after applying the +
operator.
pub fn add(self, other: Num4) -> Num4
[src]
impl Add<ValueNumber> for Num2
[src]
type Output = Num2
The resulting type after applying the +
operator.
pub fn add(self, other: ValueNumber) -> Num2
[src]
impl Add<ValueNumber> for Num4
[src]
type Output = Num4
The resulting type after applying the +
operator.
pub fn add(self, other: ValueNumber) -> Num4
[src]
impl Add<ValueNumber> for ValueNumber
[src]
type Output = ValueNumber
The resulting type after applying the +
operator.
pub fn add(self, other: ValueNumber) -> ValueNumber
[src]
impl Clone for ValueNumber
[src]
pub fn clone(&self) -> ValueNumber
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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.
pub fn div(self, other: &Num2) -> Num2
[src]
impl Div<&'_ Num4> for &ValueNumber
[src]
type Output = Num4
The resulting type after applying the /
operator.
pub fn div(self, other: &Num4) -> Num4
[src]
impl Div<&'_ ValueNumber> for &Num2
[src]
type Output = Num2
The resulting type after applying the /
operator.
pub fn div(self, other: &ValueNumber) -> Num2
[src]
impl Div<&'_ ValueNumber> for &Num4
[src]
type Output = Num4
The resulting type after applying the /
operator.
pub fn div(self, other: &ValueNumber) -> Num4
[src]
impl Div<&'_ ValueNumber> for &ValueNumber
[src]
type Output = ValueNumber
The resulting type after applying the /
operator.
pub fn div(self, other: &ValueNumber) -> ValueNumber
[src]
impl Div<Num2> for ValueNumber
[src]
type Output = Num2
The resulting type after applying the /
operator.
pub fn div(self, other: Num2) -> Num2
[src]
impl Div<Num4> for ValueNumber
[src]
type Output = Num4
The resulting type after applying the /
operator.
pub fn div(self, other: Num4) -> Num4
[src]
impl Div<ValueNumber> for Num2
[src]
type Output = Num2
The resulting type after applying the /
operator.
pub fn div(self, other: ValueNumber) -> Num2
[src]
impl Div<ValueNumber> for Num4
[src]
type Output = Num4
The resulting type after applying the /
operator.
pub fn div(self, other: ValueNumber) -> Num4
[src]
impl Div<ValueNumber> for ValueNumber
[src]
type Output = ValueNumber
The resulting type after applying the /
operator.
pub fn div(self, other: ValueNumber) -> ValueNumber
[src]
impl Eq for ValueNumber
[src]
impl From<&'_ f32> for ValueNumber
[src]
pub fn from(n: &f32) -> ValueNumber
[src]
impl From<&'_ f64> for ValueNumber
[src]
pub fn from(n: &f64) -> ValueNumber
[src]
impl From<&'_ i32> for ValueNumber
[src]
pub fn from(n: &i32) -> ValueNumber
[src]
impl From<&'_ i64> for ValueNumber
[src]
pub fn from(n: &i64) -> ValueNumber
[src]
impl From<&'_ isize> for ValueNumber
[src]
pub fn from(n: &isize) -> ValueNumber
[src]
impl From<&'_ u32> for ValueNumber
[src]
pub fn from(n: &u32) -> ValueNumber
[src]
impl From<&'_ u64> for ValueNumber
[src]
pub fn from(n: &u64) -> ValueNumber
[src]
impl From<&'_ usize> for ValueNumber
[src]
pub fn from(n: &usize) -> ValueNumber
[src]
impl From<f32> for ValueNumber
[src]
pub fn from(n: f32) -> ValueNumber
[src]
impl From<f64> for ValueNumber
[src]
pub fn from(n: f64) -> ValueNumber
[src]
impl From<i32> for ValueNumber
[src]
pub fn from(n: i32) -> ValueNumber
[src]
impl From<i64> for ValueNumber
[src]
pub fn from(n: i64) -> ValueNumber
[src]
impl From<isize> for ValueNumber
[src]
pub fn from(n: isize) -> ValueNumber
[src]
impl From<u32> for ValueNumber
[src]
pub fn from(n: u32) -> ValueNumber
[src]
impl From<u64> for ValueNumber
[src]
pub fn from(n: u64) -> ValueNumber
[src]
impl From<usize> for ValueNumber
[src]
pub fn from(n: usize) -> ValueNumber
[src]
impl Hash for ValueNumber
[src]
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Mul<&'_ Num2> for &ValueNumber
[src]
type Output = Num2
The resulting type after applying the *
operator.
pub fn mul(self, other: &Num2) -> Num2
[src]
impl Mul<&'_ Num4> for &ValueNumber
[src]
type Output = Num4
The resulting type after applying the *
operator.
pub fn mul(self, other: &Num4) -> Num4
[src]
impl Mul<&'_ ValueNumber> for &Num2
[src]
type Output = Num2
The resulting type after applying the *
operator.
pub fn mul(self, other: &ValueNumber) -> Num2
[src]
impl Mul<&'_ ValueNumber> for &Num4
[src]
type Output = Num4
The resulting type after applying the *
operator.
pub fn mul(self, other: &ValueNumber) -> Num4
[src]
impl Mul<&'_ ValueNumber> for &ValueNumber
[src]
type Output = ValueNumber
The resulting type after applying the *
operator.
pub fn mul(self, other: &ValueNumber) -> ValueNumber
[src]
impl Mul<Num2> for ValueNumber
[src]
type Output = Num2
The resulting type after applying the *
operator.
pub fn mul(self, other: Num2) -> Num2
[src]
impl Mul<Num4> for ValueNumber
[src]
type Output = Num4
The resulting type after applying the *
operator.
pub fn mul(self, other: Num4) -> Num4
[src]
impl Mul<ValueNumber> for Num2
[src]
type Output = Num2
The resulting type after applying the *
operator.
pub fn mul(self, other: ValueNumber) -> Num2
[src]
impl Mul<ValueNumber> for Num4
[src]
type Output = Num4
The resulting type after applying the *
operator.
pub fn mul(self, other: ValueNumber) -> Num4
[src]
impl Mul<ValueNumber> for ValueNumber
[src]
type Output = ValueNumber
The resulting type after applying the *
operator.
pub fn mul(self, other: ValueNumber) -> ValueNumber
[src]
impl Neg for ValueNumber
[src]
type Output = ValueNumber
The resulting type after applying the -
operator.
pub fn neg(self) -> ValueNumber
[src]
impl Neg for &ValueNumber
[src]
type Output = ValueNumber
The resulting type after applying the -
operator.
pub fn neg(self) -> ValueNumber
[src]
impl Ord for ValueNumber
[src]
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<ValueNumber> for ValueNumber
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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]
pub fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<f32> for ValueNumber
[src]
pub fn partial_cmp(&self, b: &f32) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<f64> for ValueNumber
[src]
pub fn partial_cmp(&self, b: &f64) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<i32> for ValueNumber
[src]
pub fn partial_cmp(&self, b: &i32) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<i64> for ValueNumber
[src]
pub fn partial_cmp(&self, b: &i64) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<isize> for ValueNumber
[src]
pub fn partial_cmp(&self, b: &isize) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<u32> for ValueNumber
[src]
pub fn partial_cmp(&self, b: &u32) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<u64> for ValueNumber
[src]
pub fn partial_cmp(&self, b: &u64) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<usize> for ValueNumber
[src]
pub fn partial_cmp(&self, b: &usize) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Rem<&'_ Num2> for &ValueNumber
[src]
type Output = Num2
The resulting type after applying the %
operator.
pub fn rem(self, other: &Num2) -> Num2
[src]
impl Rem<&'_ Num4> for &ValueNumber
[src]
type Output = Num4
The resulting type after applying the %
operator.
pub fn rem(self, other: &Num4) -> Num4
[src]
impl Rem<&'_ ValueNumber> for &Num2
[src]
type Output = Num2
The resulting type after applying the %
operator.
pub fn rem(self, other: &ValueNumber) -> Num2
[src]
impl Rem<&'_ ValueNumber> for &Num4
[src]
type Output = Num4
The resulting type after applying the %
operator.
pub fn rem(self, other: &ValueNumber) -> Num4
[src]
impl Rem<&'_ ValueNumber> for &ValueNumber
[src]
type Output = ValueNumber
The resulting type after applying the %
operator.
pub fn rem(self, other: &ValueNumber) -> ValueNumber
[src]
impl Rem<Num2> for ValueNumber
[src]
type Output = Num2
The resulting type after applying the %
operator.
pub fn rem(self, other: Num2) -> Num2
[src]
impl Rem<Num4> for ValueNumber
[src]
type Output = Num4
The resulting type after applying the %
operator.
pub fn rem(self, other: Num4) -> Num4
[src]
impl Rem<ValueNumber> for Num2
[src]
type Output = Num2
The resulting type after applying the %
operator.
pub fn rem(self, other: ValueNumber) -> Num2
[src]
impl Rem<ValueNumber> for Num4
[src]
type Output = Num4
The resulting type after applying the %
operator.
pub fn rem(self, other: ValueNumber) -> Num4
[src]
impl Rem<ValueNumber> for ValueNumber
[src]
type Output = ValueNumber
The resulting type after applying the %
operator.
pub fn rem(self, other: ValueNumber) -> ValueNumber
[src]
impl Sub<&'_ Num2> for &ValueNumber
[src]
type Output = Num2
The resulting type after applying the -
operator.
pub fn sub(self, other: &Num2) -> Num2
[src]
impl Sub<&'_ Num4> for &ValueNumber
[src]
type Output = Num4
The resulting type after applying the -
operator.
pub fn sub(self, other: &Num4) -> Num4
[src]
impl Sub<&'_ ValueNumber> for &Num2
[src]
type Output = Num2
The resulting type after applying the -
operator.
pub fn sub(self, other: &ValueNumber) -> Num2
[src]
impl Sub<&'_ ValueNumber> for &Num4
[src]
type Output = Num4
The resulting type after applying the -
operator.
pub fn sub(self, other: &ValueNumber) -> Num4
[src]
impl Sub<&'_ ValueNumber> for &ValueNumber
[src]
type Output = ValueNumber
The resulting type after applying the -
operator.
pub fn sub(self, other: &ValueNumber) -> ValueNumber
[src]
impl Sub<Num2> for ValueNumber
[src]
type Output = Num2
The resulting type after applying the -
operator.
pub fn sub(self, other: Num2) -> Num2
[src]
impl Sub<Num4> for ValueNumber
[src]
type Output = Num4
The resulting type after applying the -
operator.
pub fn sub(self, other: Num4) -> Num4
[src]
impl Sub<ValueNumber> for Num2
[src]
type Output = Num2
The resulting type after applying the -
operator.
pub fn sub(self, other: ValueNumber) -> Num2
[src]
impl Sub<ValueNumber> for Num4
[src]
type Output = Num4
The resulting type after applying the -
operator.
pub fn sub(self, other: ValueNumber) -> Num4
[src]
impl Sub<ValueNumber> for ValueNumber
[src]
type Output = ValueNumber
The resulting type after applying the -
operator.
pub fn sub(self, other: ValueNumber) -> ValueNumber
[src]
Auto Trait Implementations
impl RefUnwindSafe for ValueNumber
[src]
impl Send for ValueNumber
[src]
impl Sync for ValueNumber
[src]
impl Unpin for ValueNumber
[src]
impl UnwindSafe for ValueNumber
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,