Struct noodles_vcf::AsyncWriter[][src]

pub struct AsyncWriter<W> where
    W: AsyncWrite
{ /* fields omitted */ }
Expand description

An async VCF writer.

Implementations

Creates an async VCF writer.

Examples
use noodles_vcf as vcf;
let writer = vcf::AsyncWriter::new(Vec::new());

Writes a VCF header.

Examples
use noodles_vcf as vcf;

let mut writer = vcf::AsyncWriter::new(Vec::new());

let header = vcf::Header::default();
writer.write_header(&header).await?;

Writes a VCF record.

Examples
use noodles_vcf::{self as vcf, record::Position};

let record = vcf::Record::builder()
    .set_chromosome("sq0".parse()?)
    .set_position(Position::try_from(1)?)
    .set_reference_bases("A".parse()?)
    .build()?;

let mut writer = vcf::AsyncWriter::new(Vec::new());
writer.write_record(&record).await?;

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.