Get argument at index as bytes. Returns None if out of bounds.
(&self, index: usize)
| 41 | |
| 42 | /// Get argument at index as bytes. Returns None if out of bounds. |
| 43 | pub fn arg(&self, index: usize) -> Option<&[u8]> { |
| 44 | self.args.get(index).map(|v| v.as_slice()) |
| 45 | } |
| 46 | |
| 47 | /// Get argument at index as UTF-8 string. Returns None if out of bounds or invalid UTF-8. |
| 48 | pub fn arg_str(&self, index: usize) -> Option<&str> { |
no test coverage detected