pub struct PythonUdfExpression { /* private fields */ }Implementations§
Source§impl PythonUdfExpression
impl PythonUdfExpression
pub fn new( lambda: Py<PyAny>, output_type: Option<impl Into<DataTypeExpr>>, is_elementwise: bool, returns_scalar: bool, ) -> PythonUdfExpression
Trait Implementations§
Source§impl AnonymousColumnsUdf for PythonUdfExpression
impl AnonymousColumnsUdf for PythonUdfExpression
fn as_column_udf(self: Arc<PythonUdfExpression>) -> Arc<dyn ColumnsUdf>
fn deep_clone(self: Arc<PythonUdfExpression>) -> Arc<dyn AnonymousColumnsUdf>
fn try_serialize(&self, buf: &mut Vec<u8>) -> Result<(), PolarsError>
fn get_field( &self, input_schema: &Schema<DataType>, fields: &[Field], ) -> Result<Field, PolarsError>
Source§impl ColumnsUdf for PythonUdfExpression
impl ColumnsUdf for PythonUdfExpression
Auto Trait Implementations§
impl !Freeze for PythonUdfExpression
impl !RefUnwindSafe for PythonUdfExpression
impl Send for PythonUdfExpression
impl Sync for PythonUdfExpression
impl Unpin for PythonUdfExpression
impl !UnwindSafe for PythonUdfExpression
Blanket Implementations§
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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