Expand description
Cast support for numeric and boolean arrays.
Re-exportsΒ§
use crate::cast::*;π
MacrosΒ§
- numeric_
native π
StructsΒ§
- Numeric
Kind π - Properties of a numeric native type that decide whether
num_castto another numeric type can fail.
TraitsΒ§
- Numeric
Native π - A native type with a
NumericKind.
FunctionsΒ§
- bool_
to_ πnumeric_ cast - cast_
bool_ πto_ numeric - Cast Boolean types to numeric
- cast_
num_ to_ bool - Cast numeric types to boolean
- cast_
numeric_ πarrays - Convert Array into a PrimitiveArray of type, and apply numeric cast
- cast_
numeric_ πto_ bool - Cast numeric types to Boolean
- is_
infallible_ πnumeric_ cast - Returns true if
num_castsucceeds for every value offromwhen casting toto: every cast to a float, and integer casts whose target holds every source value. - num_
cast - Natural cast between numeric types
Return None if the input
valuecanβt be casted to typeO. - single_
bool_ to_ numeric - Cast single bool value to numeric value.