noodles_fasta/repository/adapters/
records.rsuse std::io;
use crate::{repository::Adapter, Record};
impl Adapter for Vec<Record> {
fn get(&mut self, name: &[u8]) -> Option<io::Result<Record>> {
self.iter()
.find(|record| record.name() == name)
.cloned()
.map(Ok)
}
}