pub trait IfThenElseKernel: Sized + Array {
type Scalar<'a>;
// Required methods
fn if_then_else(mask: &Bitmap, if_true: &Self, if_false: &Self) -> Self;
fn if_then_else_broadcast_true(
mask: &Bitmap,
if_true: Self::Scalar<'_>,
if_false: &Self,
) -> Self;
fn if_then_else_broadcast_false(
mask: &Bitmap,
if_true: &Self,
if_false: Self::Scalar<'_>,
) -> Self;
fn if_then_else_broadcast_both(
dtype: ArrowDataType,
mask: &Bitmap,
if_true: Self::Scalar<'_>,
if_false: Self::Scalar<'_>,
) -> Self;
}
Required Associated Types§
Required Methods§
fn if_then_else(mask: &Bitmap, if_true: &Self, if_false: &Self) -> Self
fn if_then_else_broadcast_true( mask: &Bitmap, if_true: Self::Scalar<'_>, if_false: &Self, ) -> Self
fn if_then_else_broadcast_false( mask: &Bitmap, if_true: &Self, if_false: Self::Scalar<'_>, ) -> Self
fn if_then_else_broadcast_both( dtype: ArrowDataType, mask: &Bitmap, if_true: Self::Scalar<'_>, if_false: Self::Scalar<'_>, ) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.