Function rustfmt_nightly::patterns::is_short_pattern
source · Expand description
Returns true
if the given pattern is “short”.
A short pattern is defined by the following grammar:
[small, ntp]
:
- single token
- &[single-line, ntp]
[small]
:
- [small, ntp]
- unary tuple constructor ([small, ntp])
- &[small]