-
Notifications
You must be signed in to change notification settings - Fork 355
Closed
Description
Currently there's no way to check if a url/scheme is "special" without duplicating logic from
Lines 161 to 167 in 1c1e406
pub fn from(s: &str) -> Self { | |
match s { | |
"http" | "https" | "ws" | "wss" | "ftp" => SchemeType::SpecialNotFile, | |
"file" => SchemeType::File, | |
_ => SchemeType::NotSpecial, | |
} | |
} |
Would be great if this could be made public, or an is_special
method added to Url
.
Also, I guess SchemeType::from
should probably be implemented via the Into
trait?
tmccombs
Metadata
Metadata
Assignees
Labels
No labels