/// Returns the canonical path of an executable binary by name.
///
/// This calls `which` and `Path::canonicalize` and maps the result into a `CanonicalPath`.
Returns the canonical path of an executable binary by name.
Returns the canonical path of an executable binary by name .
pub fn new<T: AsRef<OsStr>>(binary_name: T) -> Result<CanonicalPath> {
        which(binary_name)
            .and_then(|p| {
                p.canonicalize()
                    .map_err(|_| ErrorKind::CannotCanonicalize.into())
            })
            .map(|inner| CanonicalPath { inner })
    }
pub fn new < T : AsRef < OsStr > > ( binary_name : T ) -> Result < CanonicalPath > { which ( binary_name ) . and_then ( | p | { p . canonicalize ( ) . map_err ( | _ | ErrorKind :: CannotCanonicalize . into ( ) ) } ) . map ( | inner | CanonicalPath { inner } ) }
Returns the canonical path of an executable binary by name.
Returns the canonical path of an executable binary by name .
binary_name
T