pub enum NumberModel {
FloatOnly,
Dual,
}Expand description
The numeric model a version uses for Lua numbers.
This is the single sharpest behavioral axis across versions: 5.1/5.2 are
float-only (one number type, every value an f64, no math.type), while
5.3/5.4/5.5 carry the dual integer/float subtype.
Variants§
FloatOnly
One number type; every numeric value is an f64. Lua 5.1/5.2.
Dual
Distinct integer (i64) and float (f64) subtypes. Lua 5.3/5.4/5.5.
Trait Implementations§
Source§impl Clone for NumberModel
impl Clone for NumberModel
Source§fn clone(&self) -> NumberModel
fn clone(&self) -> NumberModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NumberModel
impl Debug for NumberModel
Source§impl Hash for NumberModel
impl Hash for NumberModel
Source§impl PartialEq for NumberModel
impl PartialEq for NumberModel
Source§fn eq(&self, other: &NumberModel) -> bool
fn eq(&self, other: &NumberModel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NumberModel
impl Eq for NumberModel
impl StructuralPartialEq for NumberModel
Auto Trait Implementations§
impl Freeze for NumberModel
impl RefUnwindSafe for NumberModel
impl Send for NumberModel
impl Sync for NumberModel
impl Unpin for NumberModel
impl UnsafeUnpin for NumberModel
impl UnwindSafe for NumberModel
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