Could you add functions `to_vec(…) -> Vec<u8>` and `to_writer(writer: impl io::Write, …)`? This would save the conversion into and from String.
Could you add functions
to_vec(…) -> Vec<u8>andto_writer(writer: impl io::Write, …)? This would save the conversion into and from String.