1
2
3
4
5
6
7
8
9
10
11
12
use crate::PyObjectRef;

pub trait IntoObject
where
    Self: Into<PyObjectRef>,
{
    fn into_object(self) -> PyObjectRef {
        self.into()
    }
}

impl<T> IntoObject for T where T: Into<PyObjectRef> {}