For example, suppose X derefs, then &pat takes X and dereferences it. If the dereferenced value matches pattern pat, it matches.
In other words, it extends &pattern from only allowing dereferencing of &T to allowing dereferencing of arbitrary T: Deref.
Alternative is of course to introduce a seperate syntax for it.
For example, suppose
Xderefs, then&pattakesXand dereferences it. If the dereferenced value matches patternpat, it matches.In other words, it extends
&patternfrom only allowing dereferencing of&Tto allowing dereferencing of arbitraryT: Deref.Alternative is of course to introduce a seperate syntax for it.