alef 0.25.37

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
    /// Release the underlying FFI handle. Safe to call once per instance.
    pub fn free(self: *{{ type_name }}) void {
        c.{{ prefix }}_{{ type_snake }}_free(@as(*c.{{ upper_prefix }}{{ type_name }}, @ptrCast(self._handle)));
    }