pub enum SciExpanded {
Expanded(String),
Overflow,
NotScientific,
}Expand description
v7.38 (read01) — parse a lexer Token::Numeric source string (digits with
an optional single ., no sign, no exponent) into (unscaled, scale) for
Literal::Numeric. Returns None if the mantissa overflows i128.
v7.39 (read01 numeric.c) — the result of expanding an 1.5e3-style
scientific literal into PG’s plain NUMERIC decimal form.
Variants§
Expanded(String)
Plain decimal string (“1.5e3” → “1500”, “1e-5” → “0.00001”).
Overflow
Exponent pushes the value outside PG’s numeric format (more than 131072 integer digits or 16383 fractional digits).
NotScientific
Not a [±]digits[.digits]e[±]digits literal at all.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SciExpanded
impl RefUnwindSafe for SciExpanded
impl Send for SciExpanded
impl Sync for SciExpanded
impl Unpin for SciExpanded
impl UnsafeUnpin for SciExpanded
impl UnwindSafe for SciExpanded
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