pub fn write_header<W: Write, T>(writer: &mut Writer<W>, names: &[T]) -> Result<()>
where
    T: AsRef<str>,
{
    writer.write_record(names.iter().map(|x| x.as_ref().as_bytes()))?;
    Ok(())
}
/// Writes a CSV header to `writer`
Writes a CSV header to `writer`
Writes a CSV header to ` writer `
pub fn write_header<W: Write, T>(writer: &mut Writer<W>, names: &[T]) -> Result<()>
where
    T: AsRef<str>,
{
    writer.write_record(names.iter().map(|x| x.as_ref().as_bytes()))?;
    Ok(())
}
pub fn write_header < W : Write , T > ( writer : & mut Writer < W > , names : & [ T ] ) -> Result < ( ) > where T : AsRef < str > , { writer . write_record ( names . iter ( ) . map ( | x | x . as_ref ( ) . as_bytes ( ) ) ) ? ; Ok ( ( ) ) }
Writes a CSV header to `writer`
Writes a CSV header to ` writer `
writer
&mut Writer<W>
names
&[T]
writer
&mut Writer<W>
names
&[T]