let path = url.to_ref::<Path>();
由 iduanyingjie
#29 in #ref
2KB
之前
let url = "www.google.com".to_string(); let path: &Path = url.as_ref();
现在
let url = "www.google.com".to_string(); let path = url.to_ref::<Path>();