aboutsummaryrefslogblamecommitdiffstats
path: root/testing/templates/match-option-result-option.html
blob: 25396b643e147eba46caaf507c46fb006b968ae0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                    
{%- match foo -%}
    {%- when None -%}
        nothing
    {%- when Some(Err(err)) -%}
        err={{err}}
    {%- when Some(Ok(None)) -%}
        num=absent
    {%- when Some(Ok(Some(num))) -%}
        num={{num}}
{%- endmatch -%}