Macro export_obj

Source
macro_rules! export_obj {
    ($path:literal,$x:expr) => { ... };
}
Expand description

A macro to save the data into a file. If the file exists, this will overwrite the existing file.

use array_object::*;
let data = vec![1f64, 2.2, -1.1, 5.6];
export_obj!("testdata.bin", data.clone());