pub fn read_records_from_result_lines<TNucleotide, TLines, TError>(
  lines: TLines,
) -> Vec<Fasta<TNucleotide>>
where
  TNucleotide: Nucleotide,
  TLines: Iterator<Item = Result<String, TError>>,
  TError: std::fmt::Debug,
  <TNucleotide as TryFrom<char>>::Error: std::fmt::Debug,
{
  let unwrapped_lines = lines
    .into_iter()
    .map(|l| l.unwrap())
    .collect::<Vec<String>>();
  read_records(unwrapped_lines.iter().map(|l| &l[..]))
}
/// reads the lines into a list of FASTA records.
/// panics if any line is not Ok
reads the lines into a list of FASTA records.
panics if any line is not Ok
reads the lines into a list of FASTA records . panics if any line is not Ok
pub fn read_records_from_result_lines<TNucleotide, TLines, TError>(
  lines: TLines,
) -> Vec<Fasta<TNucleotide>>
where
  TNucleotide: Nucleotide,
  TLines: Iterator<Item = Result<String, TError>>,
  TError: std::fmt::Debug,
  <TNucleotide as TryFrom<char>>::Error: std::fmt::Debug,
{
  let unwrapped_lines = lines
    .into_iter()
    .map(|l| l.unwrap())
    .collect::<Vec<String>>();
  read_records(unwrapped_lines.iter().map(|l| &l[..]))
}
pub fn read_records_from_result_lines < TNucleotide , TLines , TError > ( lines : TLines , ) -> Vec < Fasta < TNucleotide > > where TNucleotide : Nucleotide , TLines : Iterator < Item = Result < String , TError > > , TError : std :: fmt :: Debug , < TNucleotide as TryFrom < char > > :: Error : std :: fmt :: Debug , { let unwrapped_lines = lines . into_iter ( ) . map ( | l | l . unwrap ( ) ) . collect :: < Vec < String > > ( ) ; read_records ( unwrapped_lines . iter ( ) . map ( | l | & l [ .. ] ) ) }
reads the lines into a list of FASTA records.
reads the lines into a list of FASTA records .
lines
TLines
lines
TLines