pub struct WhitespaceTokenizer;Trait Implementations§
Source§impl BaseTokenizer<Vec<String>> for WhitespaceTokenizer
impl BaseTokenizer<Vec<String>> for WhitespaceTokenizer
type Return = ByValue
fn is_compatible(&self, tok_type: &TokenizerType) -> bool
Source§impl Display for WhitespaceTokenizer
impl Display for WhitespaceTokenizer
Source§impl Tokenizer<Vec<String>> for WhitespaceTokenizer
impl Tokenizer<Vec<String>> for WhitespaceTokenizer
fn tokenize<'t>(&'t self, s: &str) -> Vec<String>
fn tokenize_pair<'t>( &'t self, key: &str, query: &str, ) -> (Vec<String>, Vec<String>)
fn unique_tokenize<'t>(&'t self, s: &str) -> Vec<String>
fn unique_tokenize_pair<'t>( &'t self, key: &str, query: &str, ) -> (Vec<String>, Vec<String>)
Auto Trait Implementations§
impl Freeze for WhitespaceTokenizer
impl RefUnwindSafe for WhitespaceTokenizer
impl Send for WhitespaceTokenizer
impl Sync for WhitespaceTokenizer
impl Unpin for WhitespaceTokenizer
impl UnwindSafe for WhitespaceTokenizer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more