MCPcopy Create free account
hub / github.com/RetypeOS/parcode / save_sync

Method save_sync

src/api.rs:164–170  ·  view source on GitHub ↗
(path: P, root_object: &T)

Source from the content-addressed store, hash-verified

162 /// Saves an object to a file synchronously.
163 #[cfg(not(target_arch = "wasm32"))]
164 pub fn save_sync<T, P>(path: P, root_object: &T) -> Result<()>
165 where
166 T: ParcodeVisitor,
167 P: AsRef<Path>,
168 {
169 ParcodeOptions::default().save_sync(path, root_object)
170 }
171
172 /// Generates a structural inspection report of a file without full initialization.
173 ///

Callers

nothing calls this directly

Calls 1

write_syncMethod · 0.80

Tested by

no test coverage detected