alef 0.66.0

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
{% if negate -%}
{{ field_expr }} != NULL && strlen({{ field_expr }}) > 0 && strcmp({{ field_expr }}, "[]") != 0 && strcmp({{ field_expr }}, "{}") != 0
{%- else -%}
{%- if allow_null -%}
({{ field_expr }} == NULL || strlen({{ field_expr }}) == 0 || strcmp({{ field_expr }}, "[]") == 0 || strcmp({{ field_expr }}, "{}") == 0)
{%- else -%}
(strlen({{ field_expr }}) == 0 || strcmp({{ field_expr }}, "[]") == 0 || strcmp({{ field_expr }}, "{}") == 0)
{%- endif -%}
{%- endif -%}