Gets the pattern type.
StaticanyCreates a new DigestPattern that matches any digest.
StaticdigestCreates a new DigestPattern that matches the exact digest.
StaticprefixCreates a new DigestPattern that matches the prefix of a digest.
StaticbinaryCreates a new DigestPattern that matches the binary regex for a digest.
Returns true if the pattern matches the haystack.
Returns true if the Display of the matcher is complex, i.e. contains nested patterns or other complex structures that require its text rendering to be surrounded by grouping parentheses.
Returns a string representation of an object.
Hash code for use in Maps/Sets.
Pattern for matching envelopes by their digest.
Corresponds to the Rust
DigestPatternenum in digest_pattern.rs