Lines Matching refs:OsStr
29 use std::ffi::{OsStr, OsString};
56 pub fn which<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which()
80 pub fn which_global<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which_global()
85 pub fn which_all<T: AsRef<OsStr>>(binary_name: T) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all()
96 pub fn which_all_global<T: AsRef<OsStr>>( in which_all_global()
151 T: AsRef<OsStr>, in which_in()
152 U: AsRef<OsStr>, in which_in() argument
188 T: AsRef<OsStr>, in which_re_in()
204 T: AsRef<OsStr>, in which_in_all()
205 U: AsRef<OsStr>, in which_in_all() argument
221 T: AsRef<OsStr>, in which_in_global()
222 U: AsRef<OsStr>, in which_in_global() argument
411 pub fn new<T: AsRef<OsStr>>(binary_name: T) -> Result<Path> { in new()
418 pub fn all<T: AsRef<OsStr>>(binary_name: T) -> Result<impl Iterator<Item = Path>> { in all()
428 T: AsRef<OsStr>, in new_in()
429 U: AsRef<OsStr>, in new_in() argument
445 T: AsRef<OsStr>, in all_in()
446 U: AsRef<OsStr>, in all_in() argument
483 impl AsRef<OsStr> for Path {
484 fn as_ref(&self) -> &OsStr { in as_ref() argument
523 pub fn new<T: AsRef<OsStr>>(binary_name: T) -> Result<CanonicalPath> { in new()
532 pub fn all<T: AsRef<OsStr>>( in all()
551 T: AsRef<OsStr>, in new_in()
552 U: AsRef<OsStr>, in new_in() argument
570 T: AsRef<OsStr>, in all_in()
571 U: AsRef<OsStr>, in all_in() argument
615 impl AsRef<OsStr> for CanonicalPath {
616 fn as_ref(&self) -> &OsStr { in as_ref() argument