alef 0.25.37

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
    def {{ direct_name }}({{ meta_sig }}, {{ callback_param }}: Callable[..., Any]) -> {{ class_name }}:
        """Register a {{ method_name }} callback directly."""
        self._registrations.append(("{{ method_name }}", {{ meta_tuple }}, {{ callback_param }}))
        return self