pub fn write_shard<H: HashSer, W: Write>(
writer: &mut W,
tree: &PrunableTree<H>,
) -> Result<()>
Available on crate feature
unstable-serialization
only.Expand description
Writes a [PrunableTree
] to the provided Write
instance.
This is the primary method used for ShardTree shard persistence. It writes a version identifier for the most-current serialized form, followed by the tree data.