pub struct PythonFunction(pub Py<PyAny>);
Available on crate feature
python
only.Tuple Fields§
§0: Py<PyAny>
Trait Implementations§
Source§impl Clone for PythonFunction
impl Clone for PythonFunction
Source§fn clone(&self) -> PythonFunction
fn clone(&self) -> PythonFunction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl DataFrameUdf for PythonFunction
impl DataFrameUdf for PythonFunction
Source§impl Debug for PythonFunction
impl Debug for PythonFunction
Source§impl<'a> Deserialize<'a> for PythonFunction
Available on crate feature serde
only.
impl<'a> Deserialize<'a> for PythonFunction
Available on crate feature
serde
only.Source§fn deserialize<D>(
deserializer: D,
) -> Result<PythonFunction, <D as Deserializer<'a>>::Error>where
D: Deserializer<'a>,
fn deserialize<D>(
deserializer: D,
) -> Result<PythonFunction, <D as Deserializer<'a>>::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Py<PyAny>> for PythonFunction
impl From<Py<PyAny>> for PythonFunction
Source§fn from(value: Py<PyAny>) -> PythonFunction
fn from(value: Py<PyAny>) -> PythonFunction
Converts to this type from the input type.
Source§impl PartialEq for PythonFunction
impl PartialEq for PythonFunction
Source§impl Serialize for PythonFunction
Available on crate feature serde
only.
impl Serialize for PythonFunction
Available on crate feature
serde
only.Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TrySerializeToBytes for PythonFunction
Available on crate feature serde
only.
impl TrySerializeToBytes for PythonFunction
Available on crate feature
serde
only.fn try_serialize_to_bytes(&self) -> Result<Vec<u8>, PolarsError>
fn try_deserialize_bytes(bytes: &[u8]) -> Result<PythonFunction, PolarsError>
impl Eq for PythonFunction
Auto Trait Implementations§
impl Freeze for PythonFunction
impl !RefUnwindSafe for PythonFunction
impl Send for PythonFunction
impl Sync for PythonFunction
impl Unpin for PythonFunction
impl UnwindSafe for PythonFunction
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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