alef 0.81.0

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
other => {
    ext_php_rs::exception::PhpException::default(format!(
        "invalid value {other:?} for field '{{ field_name }}' of {{ enum_name }}: expected one of [{{ valid_variants }}]"
    ))
    .throw()
    .expect("failed to throw PHP exception for invalid enum string value");
    {{ fallback_expr }}
}