pub fn records(self) -> Records<B> {
        Records {
            reader: self,
            error_has_occured: false,
        }
    }
/// Return an iterator over the records of this Fasta file.
///
/// # Example
/// ```rust
/// # use std::io;
/// # use bio::io::fasta::Reader;
/// # use bio::io::fasta::Record;
/// # fn main() {
/// # const fasta_file: &'static [u8] = b">id desc
/// # AAAA
/// # ";
/// # let reader = Reader::new(fasta_file);
/// for record in reader.records() {
///     let record = record.unwrap();
///     assert_eq!(record.id(), "id");
///     assert_eq!(record.desc().unwrap(), "desc");
///     assert_eq!(record.seq().to_vec(), b"AAAA");
/// }
/// # }
/// ```
Return an iterator over the records of this Fasta file.
Return an iterator over the records of this Fasta file .
pub fn records(self) -> Records<B> {
        Records {
            reader: self,
            error_has_occured: false,
        }
    }
pub fn records ( self ) -> Records < B > { Records { reader : self , error_has_occured : false , } }
Return an iterator over the records of this Fasta file.
Return an iterator over the records of this Fasta file .
self
self
example
None
use std::io;
None
use bio::io::fasta::reader;
None
use bio::io::fasta::record;
None
fn main() {
None
const fasta_file: &'static [u8] = b">id desc
None
aaaa
None
";
None
let reader = reader::new(fasta_file);
for record in reader.records() {
let record = record.unwrap();
assert_eq!(record.id(), "id");
assert_eq!(record.desc().unwrap(), "desc");
assert_eq!(record.seq().to_vec(), b"AAAA");
}
for record in reader . records () { let record = record . unwrap () ; assert_eq! ( record . id () " id " ) ; assert_eq! ( record . desc () . unwrap () " desc " ) ; assert_eq! ( record . seq () . to_vec () b " AAAA " ) ; }
}
None