(&self, filename: &str)
| 231 | } |
| 232 | |
| 233 | pub fn write(&self, filename: &str) -> Result<()> { |
| 234 | |
| 235 | match File::create(filename) { |
| 236 | Ok(mut f) => { |
| 237 | let data = self.to_string().into_bytes(); |
| 238 | f.write_all(&data) |
| 239 | }, |
| 240 | Err(e) => Err(e) |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | pub fn run(&self, filename: &str) -> Result<Output> { |
| 245 |
no test coverage detected