Lines Matching refs:AsRef
54 pub fn which<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which()
59 pub fn which_all<T: AsRef<OsStr>>(binary_name: T) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all()
68 T: AsRef<OsStr>, in which_in()
69 U: AsRef<OsStr>, in which_in()
70 V: AsRef<path::Path>, in which_in()
83 T: AsRef<OsStr>, in which_in_all()
84 U: AsRef<OsStr>, in which_in_all()
85 V: AsRef<path::Path>, in which_in_all()
115 pub fn new<T: AsRef<OsStr>>(binary_name: T) -> Result<Path> { in new()
122 pub fn all<T: AsRef<OsStr>>(binary_name: T) -> Result<impl Iterator<Item = Path>> { in all()
132 T: AsRef<OsStr>, in new_in()
133 U: AsRef<OsStr>, in new_in()
134 V: AsRef<path::Path>, in new_in()
149 T: AsRef<OsStr>, in all_in()
150 U: AsRef<OsStr>, in all_in()
151 V: AsRef<path::Path>, in all_in()
181 impl AsRef<path::Path> for Path {
187 impl AsRef<OsStr> for Path {
229 pub fn new<T: AsRef<OsStr>>(binary_name: T) -> Result<CanonicalPath> { in new()
238 pub fn all<T: AsRef<OsStr>>( in all()
257 T: AsRef<OsStr>, in new_in()
258 U: AsRef<OsStr>, in new_in()
259 V: AsRef<path::Path>, in new_in()
276 T: AsRef<OsStr>, in all_in()
277 U: AsRef<OsStr>, in all_in()
278 V: AsRef<path::Path>, in all_in()
315 impl AsRef<path::Path> for CanonicalPath {
321 impl AsRef<OsStr> for CanonicalPath {