Skip to main content

get_writer

Function get_writer 

Source
pub fn get_writer<P: AsRef<Path>>(
    path: &Option<P>,
    bgzipped: bool,
    write_headers: bool,
    threads: usize,
    compression_level: u32,
) -> Result<Writer<Box<dyn Write>>>
Expand description

Open a CSV Writer to a file or stdout.

§Errors

  • If file can’t be created

§Panics

  • If unable to parse input path