Crate hitori_examples
source ·Expand description
Structs and trait implementations generated by
impl_expr
and impl_expr_mut
along with the source code.
Modules
- Sequences of subpatterns can be matched using an all-pattern. In hitori syntax it is represented as a tuple of its subpatterns.
- An any-pattern matches if one of its subpatterns matches. In hitori syntax it is represented as an array of its subpatterns.
- Capturing is done by annotating an all-pattern or an any-pattern with
#[hitori::capture]
. ExprMut
implementor type can be generic and implementation of the trait can be blanket.- Annotating an all-pattern or an any-pattern with
#[hitori::position]
checks position of a matched subpattern relative to input start. - More complex examples
- Repetition is done by annotating an all-pattern or an any-pattern with
#[hitori::repeat]
.