1
2
3
4
5
6
7
8
9
10
11
12
use std::io;

use crate::{variant::Record, Header};

/// A variant format writer.
pub trait Write {
    /// Writes a VCF header.
    fn write_variant_header(&mut self, header: &Header) -> io::Result<()>;

    /// Writes a variant record.
    fn write_variant_record(&mut self, header: &Header, record: &dyn Record) -> io::Result<()>;
}