pub fn write_args<Tuple: ArgumentEncoder, Writer: Write>(
writer: &mut Writer,
arguments: Tuple,
) -> Result<()>
Expand description
Serialize an encoding of a tuple and write it to a Write
buffer.
let golden1 = 1u64;
let golden2 = "hello";
let mut buffer = Vec::new();
write_args(&mut buffer, (golden1, golden2)).unwrap();
let (value1, value2) = Decode!(&buffer, u64, String).unwrap();
assert_eq!(golden1, value1);
assert_eq!(golden2, value2);