pub fn validate<'a, S>(uri: S) -> bool where
S: Into<&'a str>,
Validate the given URI against RFC2396, returning a bool
indicating its validity.
Entire input consumption is also checked as part of validation.
let is_valid = rfc2396::validate("https://example.com");
assert!(is_valid);