Skip to main content

is_valid_email

Function is_valid_email 

Source
pub fn is_valid_email(s: &str) -> bool
Expand description

true when s looks like an e-mail address: a non-empty local part, a single @, and a domain that contains a dot and doesn’t start or end with one. Whitespace is rejected. This is a typo guard, not RFC 5322.