MCPcopy Create free account
hub / github.com/daniel-e/rustml / write

Method write

src/octave.rs:233–242  ·  view source on GitHub ↗
(&self, filename: &str)

Source from the content-addressed store, hash-verified

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

Callers 2

to_fileMethod · 0.80
runMethod · 0.80

Calls 2

into_bytesMethod · 0.80
to_stringMethod · 0.80

Tested by

no test coverage detected