pub enum SumAcc {
Int(i64),
Real(f64),
}Expand description
SQLite-style numeric accumulator: stays Int while every input is
Integer and the running total fits in i64, otherwise promotes once to
Real and never demotes back.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SumAcc
impl RefUnwindSafe for SumAcc
impl Send for SumAcc
impl Sync for SumAcc
impl Unpin for SumAcc
impl UnsafeUnpin for SumAcc
impl UnwindSafe for SumAcc
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