pub enum IntOrFloat {
Int(IntType),
Float(FloatType),
}Expand description
Lua’s numeric representation, can be either integer or float.
Variants§
Implementations§
Trait Implementations§
source§impl Add<f64> for IntOrFloat
impl Add<f64> for IntOrFloat
source§impl Add<i64> for IntOrFloat
impl Add<i64> for IntOrFloat
source§impl Add for IntOrFloat
impl Add for IntOrFloat
source§impl AddAssign<f64> for IntOrFloat
impl AddAssign<f64> for IntOrFloat
source§fn add_assign(&mut self, rhs: FloatType)
fn add_assign(&mut self, rhs: FloatType)
Performs the
+= operation. Read moresource§impl AddAssign<i64> for IntOrFloat
impl AddAssign<i64> for IntOrFloat
source§fn add_assign(&mut self, rhs: IntType)
fn add_assign(&mut self, rhs: IntType)
Performs the
+= operation. Read moresource§impl AddAssign for IntOrFloat
impl AddAssign for IntOrFloat
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moresource§impl Clone for IntOrFloat
impl Clone for IntOrFloat
source§fn clone(&self) -> IntOrFloat
fn clone(&self) -> IntOrFloat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for IntOrFloat
impl Debug for IntOrFloat
source§impl Display for IntOrFloat
impl Display for IntOrFloat
source§impl From<f64> for IntOrFloat
impl From<f64> for IntOrFloat
source§impl From<i64> for IntOrFloat
impl From<i64> for IntOrFloat
source§impl Into<f64> for IntOrFloat
impl Into<f64> for IntOrFloat
source§impl Into<i64> for IntOrFloat
impl Into<i64> for IntOrFloat
source§impl Mul<f64> for IntOrFloat
impl Mul<f64> for IntOrFloat
source§impl Mul<i64> for IntOrFloat
impl Mul<i64> for IntOrFloat
source§impl Mul for IntOrFloat
impl Mul for IntOrFloat
source§impl MulAssign<f64> for IntOrFloat
impl MulAssign<f64> for IntOrFloat
source§fn mul_assign(&mut self, rhs: FloatType)
fn mul_assign(&mut self, rhs: FloatType)
Performs the
*= operation. Read moresource§impl MulAssign<i64> for IntOrFloat
impl MulAssign<i64> for IntOrFloat
source§fn mul_assign(&mut self, rhs: IntType)
fn mul_assign(&mut self, rhs: IntType)
Performs the
*= operation. Read moresource§impl MulAssign for IntOrFloat
impl MulAssign for IntOrFloat
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moresource§impl Neg for IntOrFloat
impl Neg for IntOrFloat
source§impl PartialEq for IntOrFloat
impl PartialEq for IntOrFloat
source§impl PartialOrd for IntOrFloat
impl PartialOrd for IntOrFloat
impl Copy for IntOrFloat
impl StructuralPartialEq for IntOrFloat
Auto Trait Implementations§
impl Freeze for IntOrFloat
impl RefUnwindSafe for IntOrFloat
impl Send for IntOrFloat
impl Sync for IntOrFloat
impl Unpin for IntOrFloat
impl UnwindSafe for IntOrFloat
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)