Type Alias polars_core::datatypes::DecimalChunked

source ·
pub type DecimalChunked = Logical<DecimalType, Int128Type>;
Available on crate feature dtype-decimal only.

Aliased Type§

struct DecimalChunked(pub ChunkedArray<Int128Type>, _, pub Option<DataType>);

Fields§

§0: ChunkedArray<Int128Type>§2: Option<DataType>

Implementations§

source§

impl DecimalChunked

source

pub fn precision(&self) -> Option<usize>

source

pub fn scale(&self) -> usize

Trait Implementations§

source§

impl Add for &DecimalChunked

§

type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
source§

impl Div for &DecimalChunked

§

type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
source§

impl IntoSeries for DecimalChunked

source§

impl LogicalType for DecimalChunked

source§

fn dtype(&self) -> &DataType

Get data type of ChunkedArray.
source§

fn get_any_value(&self, i: usize) -> PolarsResult<AnyValue<'_>>

source§

unsafe fn get_any_value_unchecked(&self, i: usize) -> AnyValue<'_>

Safety Read more
source§

fn cast_with_options( &self, dtype: &DataType, cast_options: CastOptions ) -> PolarsResult<Series>

source§

fn cast(&self, dtype: &DataType) -> PolarsResult<Series>

source§

impl Mul for &DecimalChunked

§

type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
source§

impl Sub for &DecimalChunked

§

type Output = Result<Logical<DecimalType, Int128Type>, PolarsError>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more