Expand description
Structs and trait implementations generated by
impl_expr and impl_expr_mut along with the source code.
Modulesยง
- all_
patterns - Sequences of subpatterns can be matched using an all-pattern. In hitori syntax it is represented as a tuple of its subpatterns.
- any_
patterns - An any-pattern matches if one of its subpatterns matches. In hitori syntax it is represented as an array of its subpatterns.
- capturing
- Capturing is done by annotating an all-pattern or an any-pattern with
#[hitori::capture]. - generics
ExprMutimplementor type can be generic and implementation of the trait can be blanket.- positions
- Annotating an all-pattern or an any-pattern with
#[hitori::position]checks position of a matched subpattern relative to input start. - putting_
everything_ together - More complex examples
- repetitions
- Repetition is done by annotating an all-pattern or an any-pattern with
#[hitori::repeat].