struct DecimalAccumulator<T: DecimalType> {
value: T::Native,
chunk: u64,
chunk_len: usize,
negative: bool,
}Expand description
Accumulates decimal digits into chunk, folding it into value whenever
it reaches MAX_CHUNK_DIGITS digits
Fields§
§value: T::Native§chunk: u64§chunk_len: usize§negative: boolImplementations§
Source§impl<T: DecimalType> DecimalAccumulator<T>
impl<T: DecimalType> DecimalAccumulator<T>
fn push(&mut self, digit: u8) -> Result<(), DecimalParseError>
Sourcefn finish(self) -> Result<T::Native, DecimalParseError>
fn finish(self) -> Result<T::Native, DecimalParseError>
Folds the digits still in chunk into the value
Auto Trait Implementations§
impl<T> Freeze for DecimalAccumulator<T>where
<T as ArrowPrimitiveType>::Native: Freeze,
impl<T> RefUnwindSafe for DecimalAccumulator<T>where
<T as ArrowPrimitiveType>::Native: RefUnwindSafe,
impl<T> Send for DecimalAccumulator<T>where
<T as ArrowPrimitiveType>::Native: Send,
impl<T> Sync for DecimalAccumulator<T>where
<T as ArrowPrimitiveType>::Native: Sync,
impl<T> Unpin for DecimalAccumulator<T>where
<T as ArrowPrimitiveType>::Native: Unpin,
impl<T> UnsafeUnpin for DecimalAccumulator<T>where
<T as ArrowPrimitiveType>::Native: UnsafeUnpin,
impl<T> UnwindSafe for DecimalAccumulator<T>where
<T as ArrowPrimitiveType>::Native: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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