alef 0.72.0

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
/// Create the native visitor accepted by the generated options-field setter.
/// Passing the returned handle to that setter transfers ownership.
/// The handle is an `AlefHandle` (`u64`); `0` means creation failed, matching
/// every other opaque-handle constructor in this module. ~keep
pub fn {{ snake }}_handle_from_callbacks(callbacks: {{ callbacks_type }}) {{ handle_type }} {
    var _cb = callbacks;
    return {{ ctor_fn }}(&_cb);
}