pub fn quote(fragment: &str) -> String
Expand description

quote path fragment using backslash escape and tilde escape defined by the RFC specification.

After escaping each path-fragment caller can join them with ‘/’.