Skip to main content

write_all

Function write_all 

Source
pub fn write_all<'a, P, I>(path: P, records: I) -> Result<()>
where P: AsRef<Path>, I: IntoIterator<Item = &'a Sequence>,
Expand description

Write records to a file, inferring format and compression from the path.

let records = vec![fastx::Sequence::fasta("a", b"ACGT")];
fastx::write_all("out.fa", &records)?;