Struct noodles::tabix::Writer [−][src]
pub struct Writer<W> where
W: Write, { /* fields omitted */ }
Expand description
A tabix writer.
Implementations
Creates a tabix writer.
Examples
use noodles_tabix as tabix;
let writer = tabix::Writer::new(Vec::new());
Returns a reference to the underlying writer.
Examples
use noodles_tabix as tabix;
let writer = tabix::Writer::new(Vec::new());
assert!(writer.get_ref().is_empty());
Attempts to finish the output stream.
This is typically only manually called if the underlying stream is needed before the writer is dropped.
Examples
use noodles_tabix as tabix;
let mut writer = tabix::Writer::new(Vec::new());
writer.try_finish()?;