Trait cpython::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

Object Safety§

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,