to_ref 0.1.1

let path = url.to_ref::<Path>();
Documentation

Before:

let url = "www.google.com".to_string();
let path: &Path = url.as_ref();

Now:

let url = "www.google.com".to_string();
let path = url.to_ref::<Path>();