Skip to main content

Module canonical

Module canonical 

Source

Constantsยง

MAX_EMAIL_LEN ๐Ÿ”’
Upper bound on an email address length, applied before canonicalization so a pathological input cannot drive unbounded work.

Functionsยง

canonicalize_email
Canonicalizes an email address for storage and matching.
case_fold ๐Ÿ”’
Per-character Unicode case fold. char::to_lowercase covers the common path; the full-fold expansions it omits (the German sharp s being the one that matters for email) are mapped explicitly.