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

Method write

src/api.rs:101–107  ·  view source on GitHub ↗

Writes an object to a generic writer with default settings. This is a convenience method that uses the default [`ParcodeOptions`].

(writer: W, root_object: &T)

Source from the content-addressed store, hash-verified

99 ///
100 /// This is a convenience method that uses the default [`ParcodeOptions`].
101 pub fn write<T, W>(writer: W, root_object: &T) -> Result<()>
102 where
103 T: ParcodeVisitor + Sync,
104 W: Write + Send,
105 {
106 ParcodeOptions::default().write(writer, root_object)
107 }
108
109 /// Serializes an object into a `Vec<u8>` in memory.
110 ///

Callers 6

saveMethod · 0.80
read_into_sliceMethod · 0.80
test_compression_configFunction · 0.80
mainFunction · 0.80

Calls 5

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

Tested by 3

test_compression_configFunction · 0.64