pub enum DecimalArray {
Decimal128(Decimal128Array),
Decimal256(Decimal256Array),
}Variants§
Decimal128(Decimal128Array)
Decimal256(Decimal256Array)
Implementations§
Source§impl DecimalArray
impl DecimalArray
pub fn from_unscaled( precision: Precision, scale: Scale, values: impl IntoIterator<Item = i256>, ) -> Self
pub fn view(&self) -> DecimalView<'_>
pub fn into_array(self) -> ArrayRef
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn precision(&self) -> Precision
pub fn scale(&self) -> Scale
pub fn data_type(&self) -> &DataType
pub fn unscaled_at(&self, index: usize) -> Option<i256>
pub fn unscaled_values(&self) -> Vec<i256>
Trait Implementations§
Source§impl Clone for DecimalArray
impl Clone for DecimalArray
Source§impl Debug for DecimalArray
impl Debug for DecimalArray
Source§impl<'a> From<&'a DecimalArray> for DecimalView<'a>
impl<'a> From<&'a DecimalArray> for DecimalView<'a>
Source§fn from(array: &'a DecimalArray) -> Self
fn from(array: &'a DecimalArray) -> Self
Converts to this type from the input type.
Source§impl From<DecimalView<'_>> for DecimalArray
impl From<DecimalView<'_>> for DecimalArray
Source§fn from(view: DecimalView<'_>) -> Self
fn from(view: DecimalView<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecimalArray
impl RefUnwindSafe for DecimalArray
impl Send for DecimalArray
impl Sync for DecimalArray
impl Unpin for DecimalArray
impl UnsafeUnpin for DecimalArray
impl UnwindSafe for DecimalArray
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