pub trait ApplyLambda<'a> {
// Required methods
fn apply_lambda_unknown(
&'a self,
_py: Python<'a>,
_lambda: &'a Bound<'a, PyAny>,
) -> PyResult<PySeries>;
fn apply_into_struct(
&'a self,
py: Python<'a>,
lambda: &Bound<'a, PyAny>,
init_null_count: usize,
first_value: AnyValue<'a>,
) -> PyResult<PySeries>;
fn apply_lambda_with_primitive_out_type<D>(
&'a self,
py: Python<'a>,
lambda: &Bound<'a, PyAny>,
init_null_count: usize,
first_value: Option<D::Native>,
) -> PyResult<ChunkedArray<D>>
where D: PyPolarsNumericType,
D::Native: IntoPyObject<'a> + FromPyObject<'a>;
fn apply_lambda_with_bool_out_type(
&'a self,
py: Python<'a>,
lambda: &Bound<'a, PyAny>,
init_null_count: usize,
first_value: Option<bool>,
) -> PyResult<ChunkedArray<BooleanType>>;
fn apply_lambda_with_string_out_type(
&'a self,
py: Python<'a>,
lambda: &Bound<'a, PyAny>,
init_null_count: usize,
first_value: Option<PyBackedStr>,
) -> PyResult<StringChunked>;
fn apply_lambda_with_list_out_type(
&'a self,
py: Python<'a>,
lambda: PyObject,
init_null_count: usize,
first_value: Option<&Series>,
dt: &DataType,
) -> PyResult<ListChunked>;
fn apply_extract_any_values(
&'a self,
py: Python<'a>,
lambda: &'a Bound<'a, PyAny>,
init_null_count: usize,
first_value: AnyValue<'a>,
) -> PyResult<Series>;
fn apply_lambda_with_object_out_type(
&'a self,
py: Python<'a>,
lambda: &Bound<'a, PyAny>,
init_null_count: usize,
first_value: Option<ObjectValue>,
) -> PyResult<ObjectChunked<ObjectValue>>;
}
Required Methods§
fn apply_lambda_unknown( &'a self, _py: Python<'a>, _lambda: &'a Bound<'a, PyAny>, ) -> PyResult<PySeries>
fn apply_into_struct( &'a self, py: Python<'a>, lambda: &Bound<'a, PyAny>, init_null_count: usize, first_value: AnyValue<'a>, ) -> PyResult<PySeries>
Sourcefn apply_lambda_with_primitive_out_type<D>(
&'a self,
py: Python<'a>,
lambda: &Bound<'a, PyAny>,
init_null_count: usize,
first_value: Option<D::Native>,
) -> PyResult<ChunkedArray<D>>
fn apply_lambda_with_primitive_out_type<D>( &'a self, py: Python<'a>, lambda: &Bound<'a, PyAny>, init_null_count: usize, first_value: Option<D::Native>, ) -> PyResult<ChunkedArray<D>>
Apply a lambda with a primitive output type
Sourcefn apply_lambda_with_bool_out_type(
&'a self,
py: Python<'a>,
lambda: &Bound<'a, PyAny>,
init_null_count: usize,
first_value: Option<bool>,
) -> PyResult<ChunkedArray<BooleanType>>
fn apply_lambda_with_bool_out_type( &'a self, py: Python<'a>, lambda: &Bound<'a, PyAny>, init_null_count: usize, first_value: Option<bool>, ) -> PyResult<ChunkedArray<BooleanType>>
Apply a lambda with a boolean output type
Sourcefn apply_lambda_with_string_out_type(
&'a self,
py: Python<'a>,
lambda: &Bound<'a, PyAny>,
init_null_count: usize,
first_value: Option<PyBackedStr>,
) -> PyResult<StringChunked>
fn apply_lambda_with_string_out_type( &'a self, py: Python<'a>, lambda: &Bound<'a, PyAny>, init_null_count: usize, first_value: Option<PyBackedStr>, ) -> PyResult<StringChunked>
Apply a lambda with string output type
Sourcefn apply_lambda_with_list_out_type(
&'a self,
py: Python<'a>,
lambda: PyObject,
init_null_count: usize,
first_value: Option<&Series>,
dt: &DataType,
) -> PyResult<ListChunked>
fn apply_lambda_with_list_out_type( &'a self, py: Python<'a>, lambda: PyObject, init_null_count: usize, first_value: Option<&Series>, dt: &DataType, ) -> PyResult<ListChunked>
Apply a lambda with list output type
fn apply_extract_any_values( &'a self, py: Python<'a>, lambda: &'a Bound<'a, PyAny>, init_null_count: usize, first_value: AnyValue<'a>, ) -> PyResult<Series>
Sourcefn apply_lambda_with_object_out_type(
&'a self,
py: Python<'a>,
lambda: &Bound<'a, PyAny>,
init_null_count: usize,
first_value: Option<ObjectValue>,
) -> PyResult<ObjectChunked<ObjectValue>>
fn apply_lambda_with_object_out_type( &'a self, py: Python<'a>, lambda: &Bound<'a, PyAny>, init_null_count: usize, first_value: Option<ObjectValue>, ) -> PyResult<ObjectChunked<ObjectValue>>
Apply a lambda with list output type
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.