Skip to main content

is_path_absolute

Function is_path_absolute 

Source
pub fn is_path_absolute(path: &str) -> bool
Expand description

Whether path matches the path-absolute rule of RFC 3986, section 3.3.

That is a /, then optionally a non-empty first segment and further /-separated segments, each made of unreserved characters, percent-encoded octets, sub-delimiters, : and @. A query, a fragment, a space or a control character is not part of it.