pub fn write_record<W: Write>(writer: &mut W, record: &Record) -> Result<()>
Write a single record followed by a newline.