Skip to main content

extract_optional

Function extract_optional 

Source
pub fn extract_optional<T>(ob: &Bound<'_, PyAny>, attr_name: &str) -> Option<T>
where T: for<'any, 'py> FromPyObject<'any, 'py>,
Expand description

Generic function to safely extract optional attributes.