Function to_writer

Source
pub fn to_writer<W, T>(writer: &mut W, value: &T) -> Result<()>
where W: Write, T: Serialize,
Expand description

Serialize the value into an IO stream of VDF text

§Errors

This will return an error if the input can’t be represented with valid VDF