pub fn detect_pattern(value: &str) -> Option<PatternType>Expand description
Detect pattern type from a string value.
Checks patterns in order of specificity:
- UUID (most specific format)
- ObjectId (24 hex chars)
- JWT (three base64 segments)
- ISO Date
- URL
- IPv4
- IPv6
- Phone
- Credit Card
- Hex String (generic fallback for hex)
Returns None if no pattern matches.
§Performance
Average: ~200ns for non-matching strings Worst case: ~1us when checking all patterns