Crate hitori_examples

Crate hitori_examples 

Source
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
ExprMut implementor 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].