[−][src]Struct bio::pattern_matching::kmp::KMP
KMP algorithm.
Methods
impl<'a> KMP<'a>
[src]
pub fn new(pattern: TextSlice<'a>) -> Self
[src]
Create a new instance for a given pattern.
ⓘImportant traits for Matches<'a, C, T>pub fn find_all<'b, C, T>(&'b self, text: T) -> Matches<'b, C, T::IntoIter> where
C: Borrow<u8>,
T: IntoIterator<Item = C>,
[src]
ⓘImportant traits for Matches<'a, C, T>
C: Borrow<u8>,
T: IntoIterator<Item = C>,
Find all matches of pattern in a given text. Matches are returned as iterator over start positions.
Auto Trait Implementations
impl<'a> Sync for KMP<'a>
impl<'a> Send for KMP<'a>
impl<'a> Unpin for KMP<'a>
impl<'a> RefUnwindSafe for KMP<'a>
impl<'a> UnwindSafe for KMP<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,