pub enum FloatFmt {
Legacy14,
G14,
TwoStage55,
}Expand description
Float rendering flavor per dialect generation — each PUC line
prints floats with a different LUA_NUMBER_FMT (v2.14 HD, pinned
by the per-dialect diff corpus):
Variants§
Legacy14
≤5.2: %.14g, and NO “.0” suffix (single number type —
tostring(2.0) is "2"). pm.lua :13 and 5.1/511 pin this.
G14
5.3/5.4: %.14g + “.0” on integer-looking renderings.
TwoStage55
5.5: %.15g → round-trip check → %.17g + “.0”
(lobject.c tostringbuffFloat).
Trait Implementations§
impl Copy for FloatFmt
impl Eq for FloatFmt
impl StructuralPartialEq for FloatFmt
Auto Trait Implementations§
impl Freeze for FloatFmt
impl RefUnwindSafe for FloatFmt
impl Send for FloatFmt
impl Sync for FloatFmt
impl Unpin for FloatFmt
impl UnsafeUnpin for FloatFmt
impl UnwindSafe for FloatFmt
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