Trait PyClone

Source
pub trait PyClone: Sized {
    // Required method
    fn clone_ref(&self, py: Python<'_>) -> Self;
}

Required Methods§

Source

fn clone_ref(&self, py: Python<'_>) -> Self

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.

Implementations on Foreign Types§

Source§

impl<T> PyClone for Option<T>
where T: PyClone,

Source§

fn clone_ref(&self, py: Python<'_>) -> Option<T>

Implementors§

Source§

impl PyClone for PyErr

Source§

impl<T> PyClone for T
where T: PythonObject,