(path: P, root_object: &T)
| 88 | /// **Note:** This method is not available on WASM targets. |
| 89 | #[cfg(not(target_arch = "wasm32"))] |
| 90 | pub fn save<T, P>(path: P, root_object: &T) -> Result<()> |
| 91 | where |
| 92 | T: ParcodeVisitor + Sync, |
| 93 | P: AsRef<Path>, |
| 94 | { |
| 95 | ParcodeOptions::default().save(path, root_object) |
| 96 | } |
| 97 | |
| 98 | /// Writes an object to a generic writer with default settings. |
| 99 | /// |