Function extract_with_context

Source
pub fn extract_with_context<'py, T>(
    value: &Bound<'py, PyAny>,
    context: &str,
    attr_name: &str,
) -> PyResult<T>
where T: FromPyObject<'py>,
Expand description

Extract a value from PyAny with better error messaging