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

Implementors