alef 0.115.5

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
{% if as_property %}
#[php(getter)]
{% endif %}
pub fn {{ getter_ident }}(&self) -> {{ return_type }} {
    {{ body }}
}
{% if as_property %}
#[php(name = "{{ method }}")]
pub fn read_{{ field_name }}(&self) -> {{ return_type }} {
    self.{{ getter_ident }}()
}
{% endif %}