rustpython_vm/convert/
into_object.rs

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> {}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.