Closed samuelcolvin closed 1 year ago
Currently there's no way to check if a url/scheme is "special" without duplicating logic from
https://github.com/servo/rust-url/blob/1c1e406874b3d2aa6f36c5d2f3a5c2ea74af9efb/url/src/parser.rs#L161-L167
Would be great if this could be made public, or an is_special method added to Url.
is_special
Url
Also, I guess SchemeType::from should probably be implemented via the Into trait?
SchemeType::from
Into
See https://github.com/servo/rust-url/pull/826
Currently there's no way to check if a url/scheme is "special" without duplicating logic from
https://github.com/servo/rust-url/blob/1c1e406874b3d2aa6f36c5d2f3a5c2ea74af9efb/url/src/parser.rs#L161-L167
Would be great if this could be made public, or an
is_special
method added toUrl
.Also, I guess
SchemeType::from
should probably be implemented via theInto
trait?