pub fn build<T, C, P>(&self, pattern: P) -> Myers<T>
    where
        T: BitVec,
        C: Borrow<u8>,
        P: IntoIterator<Item = C>,
        P::IntoIter: ExactSizeIterator,
    {
        Myers::new_ambig(pattern, Some(&self.ambigs), Some(&self.wildcards))
    }
/// Creates a Myers instance given a pattern, using any desired type for bit vectors.
/// Pattern length is restricted to the size of the bit vector `T`.
///
/// # Example:
///
/// ```
/// # extern crate bio;
/// use bio::pattern_matching::myers::{MyersBuilder, Myers};
///
/// # fn main() {
/// let myers: Myers<u32> = MyersBuilder::new()
///     .text_wildcard(b'*')
///     .build(b"TGAGCG*");
/// // ...
/// # }
Creates a Myers instance given a pattern, using any desired type for bit vectors.
Pattern length is restricted to the size of the bit vector `T`.
Creates a Myers instance given a pattern using any desired type for bit vectors . Pattern length is restricted to the size of the bit vector ` T ` .
pub fn build<T, C, P>(&self, pattern: P) -> Myers<T>
    where
        T: BitVec,
        C: Borrow<u8>,
        P: IntoIterator<Item = C>,
        P::IntoIter: ExactSizeIterator,
    {
        Myers::new_ambig(pattern, Some(&self.ambigs), Some(&self.wildcards))
    }
pub fn build < T , C , P > ( & self , pattern : P ) -> Myers < T > where T : BitVec , C : Borrow < u8 > , P : IntoIterator < Item = C > , P :: IntoIter : ExactSizeIterator , { Myers :: new_ambig ( pattern , Some ( & self . ambigs ) , Some ( & self . wildcards ) ) }
Creates a Myers instance given a pattern, using any desired type for bit vectors.
Creates a Myers instance given a pattern using any desired type for bit vectors .
&self
pattern
P
&self
pattern
P
example:
None
extern crate bio;
use bio::pattern_matching::myers::{MyersBuilder, Myers}.
use bio :: pattern_matching :: myers :: { MyersBuilder Myers } .
fn main() {
let myers: Myers = MyersBuilder::new()
.text_wildcard(b'*')
.build(b"TGAGCG*").
let myers : Myers = MyersBuilder :: new () . text_wildcard ( b ' * ' ) . build ( b " TGAGCG * " ) .
}
None