struct DecimalEncoder<'a, const N: usize, A: DecimalBeBytes<N>> {
arr: &'a A,
fixed_size: Option<usize>,
}
Expand description
Generic Avro decimal encoder over Arrow decimal arrays.
- When
fixed_size
isNone
→ Avrobytes(decimal)
; writes the minimal two’s-complement representation with a length prefix. - When
Some(n)
→ Avrofixed(n, decimal)
; sign-extends (or validates) to exactlyn
bytes and writes them directly.
Fields§
§arr: &'a A
§fixed_size: Option<usize>
Implementations§
Auto Trait Implementations§
impl<'a, const N: usize, A> Freeze for DecimalEncoder<'a, N, A>
impl<'a, const N: usize, A> RefUnwindSafe for DecimalEncoder<'a, N, A>where
A: RefUnwindSafe,
impl<'a, const N: usize, A> Send for DecimalEncoder<'a, N, A>where
A: Sync,
impl<'a, const N: usize, A> Sync for DecimalEncoder<'a, N, A>where
A: Sync,
impl<'a, const N: usize, A> Unpin for DecimalEncoder<'a, N, A>
impl<'a, const N: usize, A> UnwindSafe for DecimalEncoder<'a, N, A>where
A: RefUnwindSafe,
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