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)
| 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 | /// |