Struct galil_seiferas::Pattern [] [src]

pub struct Pattern<'a, T: 'a, F = ()> { /* fields omitted */ }

A preprocessed pattern.

Methods

impl<'a, T: Eq> Pattern<'a, T>
[src]

[src]

Preprocess the string pattern so that it can be used with the Galil-Seiferas algorithm.

[src]

If a match exists where the pattern is a substring of text, return the offset to the start of the match inside Some(_). If not, return None.

impl<'a, T, F> Pattern<'a, T, F> where
    F: Fn(&T, &T) -> bool, 
[src]

[src]

Preprocess the string pattern so that it can be used with the Galil-Seiferas algorithm.

Use equal as the equality comparison function.

[src]

If a match exists where the pattern is a substring of text, return the offset to the start of the match inside Some(_). If not, return None.

Trait Implementations

impl<'a, T: Debug + 'a, F: Debug> Debug for Pattern<'a, T, F>
[src]

[src]

Formats the value using the given formatter.

impl<'a, T, F: Copy> Copy for Pattern<'a, T, F>
[src]

impl<'a, T, F: Clone> Clone for Pattern<'a, T, F>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more