Trait duct::ToExecutable
[−]
[src]
pub trait ToExecutable { fn to_executable(self) -> OsString; }
duct
provides several impls of this trait to handle the difference between
Path
/PathBuf
and other types of strings. In particular, duct
automatically prepends a
leading dot to relative paths (though not other string types) before
executing them. This is required for single-component relative paths to work
at all on Unix, and it prevents aliasing with programs in the global PATH
on both Unix and Windows. See the trait bounds on cmd
and
sh
.
Required Methods
fn to_executable(self) -> OsString
Implementors
impl<'a> ToExecutable for &'a Path
impl ToExecutable for PathBuf
impl<'a> ToExecutable for &'a PathBuf
impl<'a> ToExecutable for &'a str
impl ToExecutable for String
impl<'a> ToExecutable for &'a String
impl<'a> ToExecutable for &'a OsStr
impl ToExecutable for OsString
impl<'a> ToExecutable for &'a OsString