pub struct DecimalArray { /* private fields */ }Expand description
A decimal64 array whose values are signed unscaled integers.
Implementations§
Source§impl DecimalArray
impl DecimalArray
Sourcepub fn new(
values: Vec<i64>,
validity: Option<Vec<bool>>,
precision: u16,
scale: i16,
) -> Self
pub fn new( values: Vec<i64>, validity: Option<Vec<bool>>, precision: u16, scale: i16, ) -> Self
Construct a decimal array of signed unscaled values.
pub fn values(&self) -> &[i64]
pub fn validity(&self) -> Option<&[bool]>
pub fn precision(&self) -> u16
pub fn scale(&self) -> i16
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_null(&self, index: usize) -> bool
Trait Implementations§
Source§impl Clone for DecimalArray
impl Clone for DecimalArray
Source§fn clone(&self) -> DecimalArray
fn clone(&self) -> DecimalArray
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecimalArray
impl Debug for DecimalArray
impl Eq for DecimalArray
Source§impl PartialEq for DecimalArray
impl PartialEq for DecimalArray
impl StructuralPartialEq for DecimalArray
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§
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