alef 0.115.5

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
(static function ($enum_json) {
    $enum_list = json_decode($enum_json, false, 512, JSON_THROW_ON_ERROR);
    if (!is_array($enum_list)) {
        throw new \RuntimeException('expected enum collection payload');
    }
    return $enum_list{% for step in steps %}{{ step }}{% endfor %};
})({{ enum_expression }})