validate_pycapsule

Function validate_pycapsule 

Source
pub(crate) fn validate_pycapsule(
    capsule: &Bound<'_, PyCapsule>,
    name: &str,
) -> PyResult<()>