Lines Matching refs:AsRef
56 pub fn which<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> {
80 pub fn which_global<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> {
85 pub fn which_all<T: AsRef<OsStr>>(binary_name: T) -> Result<impl Iterator<Item = path::PathBuf>> {
96 pub fn which_all_global<T: AsRef<OsStr>>(
151 T: AsRef<OsStr>,
152 U: AsRef<OsStr>,
153 V: AsRef<path::Path>,
188 T: AsRef<OsStr>,
204 T: AsRef<OsStr>,
205 U: AsRef<OsStr>,
206 V: AsRef<path::Path>,
221 T: AsRef<OsStr>,
222 U: AsRef<OsStr>,
411 pub fn new<T: AsRef<OsStr>>(binary_name: T) -> Result<Path> {
418 pub fn all<T: AsRef<OsStr>>(binary_name: T) -> Result<impl Iterator<Item = Path>> {
428 T: AsRef<OsStr>,
429 U: AsRef<OsStr>,
430 V: AsRef<path::Path>,
445 T: AsRef<OsStr>,
446 U: AsRef<OsStr>,
447 V: AsRef<path::Path>,
477 impl AsRef<path::Path> for Path {
483 impl AsRef<OsStr> for Path {
523 pub fn new<T: AsRef<OsStr>>(binary_name: T) -> Result<CanonicalPath> {
532 pub fn all<T: AsRef<OsStr>>(
551 T: AsRef<OsStr>,
552 U: AsRef<OsStr>,
553 V: AsRef<path::Path>,
570 T: AsRef<OsStr>,
571 U: AsRef<OsStr>,
572 V: AsRef<path::Path>,
609 impl AsRef<path::Path> for CanonicalPath {
615 impl AsRef<OsStr> for CanonicalPath {