alef 0.23.69

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
{%- if doc %}
{{ doc }}{%- endif %}
    @discardableResult
    public func {{ config_camel }}() -> Self {
        guard let inner = inner else { return self }
        // swift-bridge emits `fn config(client: &mut App);` as a free Swift function
        // `RustBridge.{{ config_camel }}(_ client: AppRefMut)`; the wrapper class itself
        // does not gain `inner.config()`. Call through the module function instead.
        RustBridge.{{ config_camel }}(inner)
        return self
    }