Whether the pattern matches haystack.
haystack
If pattern is not a Pattern or haystack is not an Envelope
pattern
Pattern
Envelope
Whether the pattern matches
haystack.