FMIndexMultiPiecesSearch

Struct FMIndexMultiPiecesSearch 

Source
pub struct FMIndexMultiPiecesSearch<'a, C: Character>(/* private fields */);
Expand description

Search result for MultiText index, count only.

Implementations§

Source§

impl<'a, C: Character> FMIndexMultiPiecesSearch<'a, C>

Source

pub fn search<K>(&self, pattern: K) -> Self
where K: AsRef<[C]>,

Search in the current search result, refining it.

This adds a prefix pattern to the existing pattern, and looks for those expanded patterns in the text.

Source

pub fn count(&self) -> usize

Count the number of occurrences.

Trait Implementations§

Source§

impl<'a, C: Character> Search<'a, C> for FMIndexMultiPiecesSearch<'a, C>

Source§

type Match = FMIndexMultiPiecesMatch<'a, C>

Associated type for matches.
Source§

fn search<K>(&self, pattern: K) -> Self
where K: AsRef<[C]>,

Search in the current search result, refining it. Read more
Source§

fn count(&self) -> usize

Count the number of occurrences.
Source§

fn iter_matches(&'a self) -> impl Iterator<Item = Self::Match> + 'a

Get an iterator over all matches.

Auto Trait Implementations§

§

impl<'a, C> Freeze for FMIndexMultiPiecesSearch<'a, C>

§

impl<'a, C> RefUnwindSafe for FMIndexMultiPiecesSearch<'a, C>
where C: RefUnwindSafe,

§

impl<'a, C> Send for FMIndexMultiPiecesSearch<'a, C>
where C: Sync + Send,

§

impl<'a, C> Sync for FMIndexMultiPiecesSearch<'a, C>
where C: Sync,

§

impl<'a, C> Unpin for FMIndexMultiPiecesSearch<'a, C>
where C: Unpin,

§

impl<'a, C> UnwindSafe for FMIndexMultiPiecesSearch<'a, C>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.