Skip to main content

url_scheme

Function url_scheme 

Source
pub fn url_scheme(path: &str) -> String
Expand description

Ported from URLScheme. Returns the URL scheme of path, or empty when path has none or does not parse as a URL. Only paths containing “://” count as URLs, so a local path with a colon in its first segment (overlays:v2/dev, c:/x) stays a local path.