Type Alias PythonFunction

Source
pub type PythonFunction = PythonObject;

Aliased Type§

pub struct PythonFunction(pub Py<PyAny>);

Tuple Fields§

§0: Py<PyAny>

Implementations

Source§

impl PythonObject

Source

pub fn serialize_with_pyversion<T, S>( value: &T, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>

Source

pub fn deserialize_with_pyversion<'de, T, D>( d: D, ) -> Result<T, <D as Deserializer<'de>>::Error>
where T: From<PythonObject>, D: Deserializer<'de>,

Trait Implementations

Source§

impl Clone for PythonObject

Source§

fn clone(&self) -> PythonObject

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl DataFrameUdf for PythonObject

Source§

impl Debug for PythonObject

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Deref for PythonObject

Source§

type Target = Py<PyAny>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<PythonObject as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for PythonObject

Source§

fn deref_mut(&mut self) -> &mut <PythonObject as Deref>::Target

Mutably dereferences the value.
Source§

impl<'a> Deserialize<'a> for PythonObject

Source§

fn deserialize<D>( deserializer: D, ) -> Result<PythonObject, <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 PythonObject

Source§

fn from(value: Py<PyAny>) -> PythonObject

Converts to this type from the input type.
Source§

impl<'py> IntoPyObject<'py> for PythonObject

Source§

type Target = PyAny

The Python output type
Source§

type Output = Bound<'py, <PythonObject as IntoPyObject<'py>>::Target>

The smart pointer type to use. Read more
Source§

type Error = PyErr

The type returned in the event of a conversion error.
Source§

fn into_pyobject( self, py: Python<'py>, ) -> Result<<PythonObject as IntoPyObject<'py>>::Output, <PythonObject as IntoPyObject<'py>>::Error>

Performs the conversion.
Source§

impl PartialEq for PythonObject

Source§

fn eq(&self, other: &PythonObject) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for PythonObject

Source§

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 PythonObject

Source§

impl Eq for PythonObject