Skip to main content

call_capsule_method_if_exists

Function call_capsule_method_if_exists 

Source
pub(crate) fn call_capsule_method_if_exists<'py>(
    object: &Bound<'py, PyAny>,
    method_name: &Bound<'py, PyString>,
) -> PyResult<Option<Bound<'py, PyCapsule>>>