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

Method write_sync

src/api.rs:154–160  ·  view source on GitHub ↗

Writes an object to a generic writer synchronously.

(writer: W, root_object: &T)

Source from the content-addressed store, hash-verified

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"))]

Callers 1

save_syncMethod · 0.80

Calls 6

execute_graph_serialFunction · 0.85
execute_graphFunction · 0.85
write_allMethod · 0.80
to_bytesMethod · 0.80
flushMethod · 0.80
visitMethod · 0.45

Tested by

no test coverage detected