Writes an object to a generic writer synchronously.
(writer: W, root_object: &T)
| 152 | |
| 153 | /// Writes an object to a generic writer synchronously. |
| 154 | pub fn write_sync<T, W>(writer: W, root_object: &T) -> Result<()> |
| 155 | where |
| 156 | T: ParcodeVisitor, |
| 157 | W: Write + Send, |
| 158 | { |
| 159 | ParcodeOptions::default().write_sync(writer, root_object) |
| 160 | } |
| 161 | |
| 162 | /// Saves an object to a file synchronously. |
| 163 | #[cfg(not(target_arch = "wasm32"))] |
no test coverage detected