pub struct DecimalColumn<'a> { /* private fields */ }Expand description
Borrowed view over a DECIMAL64, DECIMAL128, or DECIMAL256 column.
The mantissas remain in their decoded little-endian two’s-complement
representation. This view does not convert or copy them, and it preserves
the physical QWP width exposed by kind.
Implementations§
Source§impl<'a> DecimalColumn<'a>
impl<'a> DecimalColumn<'a>
Sourcepub fn kind(&self) -> ColumnKind
pub fn kind(&self) -> ColumnKind
Physical QWP decimal kind.
Sourcepub fn byte_width(&self) -> u8
pub fn byte_width(&self) -> u8
Mantissa width in bytes: 8, 16, or 32.
Sourcepub fn max_precision(&self) -> u8
pub fn max_precision(&self) -> u8
Maximum SQL precision represented by this physical width.
This is 18, 38, or 76. It is not necessarily the result expression’s declared precision because QWP carries the physical kind, not the exact SQL precision.
pub fn scale(&self) -> i8
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn validity(&self) -> Validity<'a>
pub fn is_null(&self, row: usize) -> bool
Trait Implementations§
Source§impl<'a> Clone for DecimalColumn<'a>
impl<'a> Clone for DecimalColumn<'a>
Source§fn clone(&self) -> DecimalColumn<'a>
fn clone(&self) -> DecimalColumn<'a>
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 moreimpl<'a> Copy for DecimalColumn<'a>
Auto Trait Implementations§
impl<'a> Freeze for DecimalColumn<'a>
impl<'a> RefUnwindSafe for DecimalColumn<'a>
impl<'a> Send for DecimalColumn<'a>
impl<'a> Sync for DecimalColumn<'a>
impl<'a> Unpin for DecimalColumn<'a>
impl<'a> UnsafeUnpin for DecimalColumn<'a>
impl<'a> UnwindSafe for DecimalColumn<'a>
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more