[−][src]Crate entab
entab is a library to parse different "record-formatted" file formats into tabular form.
An example reading a FASTA file and extracting all the ids:
use std::fs::File; use entab::buffer::ReadBuffer; use entab::readers::fasta::{FastaReader, FastaRecord}; let file = Box::new(File::open("./tests/data/sequence.fasta")?); let buffer = ReadBuffer::new(file)?; let mut reader = FastaReader::new(buffer, ())?; while let Some(FastaRecord { id, .. }) = reader.next()? { println!("{}", id); }
Re-exports
pub use error::EtError; |
Modules
buffer | The buffer interface that underlies the file readers |
compression | Generic file decompression |
error | Miscellanous utility functions and error handling |
filetype | File format inference |
readers | Parsers for specific file formats |
record | Record and abstract record reading |
Macros
impl_reader | Generates a |
impl_record | Autogenerates the conversion from a struct into the matching |