Skip to main content

TargetFormat

Trait TargetFormat 

Source
pub trait TargetFormat {
    // Required method
    fn write_record_with_options<W: Write + ?Sized>(
        record: &GenePred,
        writer: &mut W,
        options: &WriterOptions,
    ) -> WriterResult<()>;

    // Provided method
    fn write_record<W: Write + ?Sized>(
        record: &GenePred,
        writer: &mut W,
    ) -> WriterResult<()> { ... }
}
Expand description

Trait implemented by all supported output formats.

Required Methods§

Source

fn write_record_with_options<W: Write + ?Sized>( record: &GenePred, writer: &mut W, options: &WriterOptions, ) -> WriterResult<()>

Writes a single GenePred record to the writer in the target format.

Provided Methods§

Source

fn write_record<W: Write + ?Sized>( record: &GenePred, writer: &mut W, ) -> WriterResult<()>

Writes a record with default options.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§