Trait cpython::RefFromPyObject [−][src]
pub trait RefFromPyObject {
fn with_extracted<F, R>(py: Python, obj: &PyObject, f: F) -> PyResult<R>
where
F: FnOnce(&Self) -> R;
}Required Methods
fn with_extracted<F, R>(py: Python, obj: &PyObject, f: F) -> PyResult<R> where
F: FnOnce(&Self) -> R,
F: FnOnce(&Self) -> R,
Implementations on Foreign Types
impl RefFromPyObject for str[src]
impl RefFromPyObject for strImplementors
impl<T: ?Sized> RefFromPyObject for T where
&'a T: FromPyObject<'a>,