()
| 6 | ffi::OsString}; |
| 7 | |
| 8 | pub fn args() -> impl Iterator<Item = String> { |
| 9 | // Convert bytes into a vector of owned strings |
| 10 | get_args() |
| 11 | .split(|&b| b == 0x03) |
| 12 | .map(|arg| String::from_utf8_lossy(arg).into_owned()) |
| 13 | } |
| 14 | |
| 15 | pub fn as_str() -> Result<&'static str, Utf8Error> { |
| 16 | from_utf8(get_env()) |