pub fn marshal_ref_to(node: &NodeRef<'_>, writer: &mut impl Write) -> Result<()>
Zero-copy serialization of a NodeRef directly into a writer. This avoids the allocation overhead of converting to an owned Node first.
NodeRef
Node