pub struct NaiveWordSplitter {}
Expand description
Naive word splitting that is based on tokens being cut where alphanimerics, space and symbols change from one type to another.
⚠️ This segmenter is unstable and may change significantly outside of semver gurantees
This currently isn’t all that useful and as the name says naive.
Please prefer the UnicodeWordSplitter.
Implementations§
Trait Implementations§
Source§impl Clone for NaiveWordSplitter
impl Clone for NaiveWordSplitter
Source§fn clone(&self) -> NaiveWordSplitter
fn clone(&self) -> NaiveWordSplitter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NaiveWordSplitter
impl Debug for NaiveWordSplitter
Source§impl Default for NaiveWordSplitter
impl Default for NaiveWordSplitter
Source§fn default() -> NaiveWordSplitter
fn default() -> NaiveWordSplitter
Returns the “default value” for a type. Read more
Source§impl Segmenter for NaiveWordSplitter
impl Segmenter for NaiveWordSplitter
Source§type SubdivisionIter<'a> = IntoIter<SegmentedToken<'a>>
type SubdivisionIter<'a> = IntoIter<SegmentedToken<'a>>
The iterator type returned by the
subdivide
function if it has multiple results. Read moreSource§fn subdivide<'a>(
&self,
token: SegmentedToken<'a>,
) -> UseOrSubdivide<SegmentedToken<'a>, IntoIter<SegmentedToken<'a>>> ⓘ
fn subdivide<'a>( &self, token: SegmentedToken<'a>, ) -> UseOrSubdivide<SegmentedToken<'a>, IntoIter<SegmentedToken<'a>>> ⓘ
A method that should split the given
token
into zero, one or more subtokens. Read moreAuto Trait Implementations§
impl Freeze for NaiveWordSplitter
impl RefUnwindSafe for NaiveWordSplitter
impl Send for NaiveWordSplitter
impl Sync for NaiveWordSplitter
impl Unpin for NaiveWordSplitter
impl UnwindSafe for NaiveWordSplitter
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