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 valid email address.

Checks for a non-empty local part and domain separated by @, with the domain being a valid hostname or IP address literal.