Skip to main content

is_email

Function is_email 

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

Returns true if s is a plausible email address.

Checks for a non-empty local part, exactly one @, and a domain that contains at least one . and does not start or end with ..