1use crate::PyObjectRef; 2 3pub trait IntoObject 4where 5 Self: Into<PyObjectRef>, 6{ 7 fn into_object(self) -> PyObjectRef { 8 self.into() 9 } 10} 11 12impl<T> IntoObject for T where T: Into<PyObjectRef> {}