[][src]Struct fst_subseq_ascii_caseless::SubseqAsciiCaseless

pub struct SubseqAsciiCaseless<'a> { /* fields omitted */ }

An automaton that matches if the input contains a specific subsequence ignoring ASCII case.

It is similar to fst::automaton::Subsequence, and can be used to build a simple fuzzy-finder for ASCII-only content.

Methods

impl<'a> SubseqAsciiCaseless<'a>[src]

pub fn new(subseq: &'a str) -> Self[src]

Constructs automaton that matches input containing the specified subsequence ignoring ASCII case.

Panics

Panics if subseq contains any ASCII uppercase character.

pub fn new_unchecked(subseq: &'a str) -> Self[src]

Same as new() but don't check the string.

It would never match if the subseq contains any ASCII uppercase character.

Trait Implementations

impl<'a> Automaton for SubseqAsciiCaseless<'a>[src]

type State = usize

The type of the state used in the automaton.

impl<'a> Clone for SubseqAsciiCaseless<'a>[src]

impl<'a> Debug for SubseqAsciiCaseless<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for SubseqAsciiCaseless<'a>

impl<'a> Send for SubseqAsciiCaseless<'a>

impl<'a> Sync for SubseqAsciiCaseless<'a>

impl<'a> Unpin for SubseqAsciiCaseless<'a>

impl<'a> UnwindSafe for SubseqAsciiCaseless<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.