[][src]Function validator::validate_email

#[must_use]pub fn validate_email<'a, T>(val: T) -> bool where
    T: Into<Cow<'a, str>>, 

Validates whether the given string is an email based on the HTML5 spec. RFC 5322 is not practical in most circumstances and allows email addresses that are unfamiliar to most users.