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
impl Copy for NumberModel
Source§impl Debug for NumberModel
impl Debug for NumberModel
impl Eq for NumberModel
Source§impl Hash for NumberModel
impl Hash for NumberModel
Source§impl PartialEq for NumberModel
impl PartialEq for NumberModel
impl StructuralPartialEq for NumberModel
Auto Trait Implementations§
impl Forget for NumberModel
impl Freeze for NumberModel
impl Move 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