Trait bdb::traits::FastqCollection
source · 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§
sourcefn to_fastq_strict<T: Write>(
&self,
writer: &mut T
) -> Result<(), Box<dyn StdError>>
fn to_fastq_strict<T: Write>(
&self,
writer: &mut T
) -> Result<(), Box<dyn StdError>>
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.
sourcefn to_fastq_lenient<T: Write>(
&self,
writer: &mut T
) -> Result<(), Box<dyn StdError>>
fn to_fastq_lenient<T: Write>(
&self,
writer: &mut T
) -> Result<(), Box<dyn StdError>>
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.