noodles_vcf::variant::io

Trait Write

Source
pub trait Write {
    // Required methods
    fn write_variant_header(&mut self, header: &Header) -> Result<()>;
    fn write_variant_record(
        &mut self,
        header: &Header,
        record: &dyn Record,
    ) -> Result<()>;
}
Expand description

A variant format writer.

Required Methods§

Source

fn write_variant_header(&mut self, header: &Header) -> Result<()>

Writes a VCF header.

Source

fn write_variant_record( &mut self, header: &Header, record: &dyn Record, ) -> Result<()>

Writes a variant record.

Implementors§

Source§

impl<W> Write for Writer<W>
where W: Write,