pub enum DecimalView<'a> {
Decimal128(&'a Decimal128Array),
Decimal256(&'a Decimal256Array),
}Variants§
Decimal128(&'a Decimal128Array)
Decimal256(&'a Decimal256Array)
Implementations§
Source§impl<'a> DecimalView<'a>
impl<'a> DecimalView<'a>
pub fn array(&self) -> &'a dyn Array
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) -> &'a DataType
pub fn unscaled_at(&self, index: usize) -> Option<i256>
pub fn unscaled_values(&self) -> Vec<i256>
Trait Implementations§
Source§impl<'a> Clone for DecimalView<'a>
impl<'a> Clone for DecimalView<'a>
impl<'a> Copy for DecimalView<'a>
Source§impl<'a> Debug for DecimalView<'a>
impl<'a> Debug for DecimalView<'a>
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<'a> From<&DecimalView<'a>> for DecimalView<'a>
impl<'a> From<&DecimalView<'a>> for DecimalView<'a>
Source§fn from(view: &DecimalView<'a>) -> Self
fn from(view: &DecimalView<'a>) -> 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<'a> Freeze for DecimalView<'a>
impl<'a> RefUnwindSafe for DecimalView<'a>
impl<'a> Send for DecimalView<'a>
impl<'a> Sync for DecimalView<'a>
impl<'a> Unpin for DecimalView<'a>
impl<'a> UnsafeUnpin for DecimalView<'a>
impl<'a> UnwindSafe for DecimalView<'a>
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