pub fn new<'a>(
        start_codons: Vec<&'a [u8; 3]>,
        stop_codons: Vec<&'a [u8; 3]>,
        min_len: usize,
    ) -> Self {
        Finder {
            start_codons: start_codons
                .iter()
                .map(|x| x.iter().map(|&x| x as u8).collect::<VecDeque<u8>>())
                .collect(),
            stop_codons: stop_codons
                .iter()
                .map(|x| x.iter().map(|&x| x as u8).collect::<VecDeque<u8>>())
                .collect(),
            min_len,
        }
    }
/// Create a new instance of a finder for the given start and stop codons and the minimum
/// length of an ORF.
Create a new instance of a finder for the given start and stop codons and the minimum
length of an ORF.
Create a new instance of a finder for the given start and stop codons and the minimum length of an ORF .
pub fn new<'a>(
        start_codons: Vec<&'a [u8; 3]>,
        stop_codons: Vec<&'a [u8; 3]>,
        min_len: usize,
    ) -> Self {
        Finder {
            start_codons: start_codons
                .iter()
                .map(|x| x.iter().map(|&x| x as u8).collect::<VecDeque<u8>>())
                .collect(),
            stop_codons: stop_codons
                .iter()
                .map(|x| x.iter().map(|&x| x as u8).collect::<VecDeque<u8>>())
                .collect(),
            min_len,
        }
    }
pub fn new < ' a > ( start_codons : Vec < & ' a [ u8 ; 3 ] > , stop_codons : Vec < & ' a [ u8 ; 3 ] > , min_len : usize , ) -> Self { Finder { start_codons : start_codons . iter ( ) . map ( | x | x . iter ( ) . map ( | & x | x as u8 ) . collect :: < VecDeque < u8 > > ( ) ) . collect ( ) , stop_codons : stop_codons . iter ( ) . map ( | x | x . iter ( ) . map ( | & x | x as u8 ) . collect :: < VecDeque < u8 > > ( ) ) . collect ( ) , min_len , } }
Create a new instance of a finder for the given start and stop codons and the minimum
length of an ORF.
Create a new instance of a finder for the given start and stop codons and the minimum length of an ORF .
start_codons
Vec<&'a [u8; 3]>
stop_codons
Vec<&'a [u8; 3]>
min_len
usize
start_codons
Vec<&'a [u8; 3]>
stop_codons
Vec<&'a [u8; 3]>
min_len
usize