pub trait PyTryFrom<P>: Sized {
// Required method
fn py_try_from(py: Python<'_>, item: &P) -> PyResult<Self>;
}
Expand description
Convert from a Python type to a Rust type.
Required Methods§
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.