pub trait FastqCollection: Fastq {
    fn to_fastq_strict<T: Write>(
        &self,
        writer: &mut T
    ) -> Result<(), Box<dyn StdError>>; fn to_fastq_lenient<T: Write>(
        &self,
        writer: &mut T
    ) -> Result<(), Box<dyn StdError>>; fn from_fastq_strict<T: BufRead>(
        reader: &mut T
    ) -> Result<Self, Box<dyn StdError>>; fn from_fastq_lenient<T: BufRead>(
        reader: &mut T
    ) -> Result<Self, Box<dyn StdError>>; }
Expand description

Specialization of the Fastq trait for collections.

Required Methods§

Export collection to FASTQ.

Returns an error if any of the items within the collection are invalid.

Note that many small writers are made to the writer, so the writer should be buffered.

Export collection to FASTQ.

Returns only errors due to serialization issues, otherwise, exports as many items as possible.

Note that many small writers are made to the writer, so the writer should be buffered.

Import collection from FASTQ.

Returns an error if any of the items within the FASTQ document are invalid.

Import collection from FASTQ.

Returns only errors due to deserialization errors, otherwise, imports as many items as possible.

Implementors§