pub struct Decimal128<const P: u8, const S: i8>(/* private fields */);Expand description
Fixed-precision decimal stored in 128 bits.
The value is represented as a scaled integer of type i128.
Implementations§
Trait Implementations§
Source§impl<const P: u8, const S: i8> ArrowBinding for Decimal128<P, S>
impl<const P: u8, const S: i8> ArrowBinding for Decimal128<P, S>
Source§type Builder = PrimitiveBuilder<Decimal128Type>
type Builder = PrimitiveBuilder<Decimal128Type>
Concrete Arrow builder type used for this Rust type.
Source§type Array = PrimitiveArray<Decimal128Type>
type Array = PrimitiveArray<Decimal128Type>
Concrete Arrow array type produced by
finish.Source§fn new_builder(capacity: usize) -> Self::Builder
fn new_builder(capacity: usize) -> Self::Builder
Create a new builder with an optional capacity hint.
Source§fn append_value(b: &mut Self::Builder, v: &Self)
fn append_value(b: &mut Self::Builder, v: &Self)
Append a non-null value to the builder.
Source§fn append_null(b: &mut Self::Builder)
fn append_null(b: &mut Self::Builder)
Append a null to the builder.
Source§fn finish(b: Self::Builder) -> Self::Array
fn finish(b: Self::Builder) -> Self::Array
Finish the builder and produce a typed Arrow array.
Source§fn estimated_bytes_per_value() -> usize
fn estimated_bytes_per_value() -> usize
Estimated bytes per value for variable-length types (String, Binary, etc.).
Returns 0 for fixed-size types. Used to pre-allocate buffer space.
Source§impl<const P: u8, const S: i8> ArrowBindingView for Decimal128<P, S>
Available on crate feature views only.
impl<const P: u8, const S: i8> ArrowBindingView for Decimal128<P, S>
Available on crate feature
views only.Source§type Array = PrimitiveArray<Decimal128Type>
type Array = PrimitiveArray<Decimal128Type>
The Arrow array type this view reads from.
Source§type View<'a> = Decimal128<P, S>
type View<'a> = Decimal128<P, S>
The borrowed view type returned when accessing array elements.
For example:
&'a str for StringArray, i64 for Int64Array.Auto Trait Implementations§
impl<const P: u8, const S: i8> Freeze for Decimal128<P, S>
impl<const P: u8, const S: i8> RefUnwindSafe for Decimal128<P, S>
impl<const P: u8, const S: i8> Send for Decimal128<P, S>
impl<const P: u8, const S: i8> Sync for Decimal128<P, S>
impl<const P: u8, const S: i8> Unpin for Decimal128<P, S>
impl<const P: u8, const S: i8> UnwindSafe for Decimal128<P, S>
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